[BUGFIX] Failing test in autoloader with phpunit 3.6
[Packages/TYPO3.CMS.git] / tests / t3lib / class.t3lib_autoloaderTest.php
index b5773fd..475630f 100644 (file)
@@ -125,7 +125,7 @@ class t3lib_autoloaderTest extends Tx_Phpunit_TestCase {
                $mockCache = $this->getMock('t3lib_cache_frontend_AbstractFrontend', array('getIdentifier', 'set', 'get', 'getByTag', 'has', 'remove', 'flush', 'flushByTag', 'requireOnce'), array(), '', FALSE);
                        // Expect the mock cache set method to be called
                        // once with t3lib_autoloader as third parameter
-               $mockCache->expects($this->once())->method('set')->with(TRUE, TRUE, array('t3lib_autoloader'));
+               $mockCache->expects($this->once())->method('set')->with($this->anything(), $this->anything(), array('t3lib_autoloader'));
                $GLOBALS['typo3CacheManager'] = $this->getMock('t3lib_cache_Manager', array('getCache'));
                $GLOBALS['typo3CacheManager']->expects($this->any())->method('getCache')->will($this->returnValue($mockCache));
                t3lib_autoloader::unregisterAutoloader();
@@ -209,7 +209,7 @@ class t3lib_autoloaderTest extends Tx_Phpunit_TestCase {
                $GLOBALS['typo3CacheManager']->expects($this->any())->method('getCache')->will($this->returnValue($mockCache));
 
                        // Expect that an entry to the cache is written containing the newly found class
-               $mockCache->expects($this->once())->method('set')->with(TRUE, $this->stringContains(strtolower($class), TRUE));
+               $mockCache->expects($this->once())->method('set')->with($this->anything(), $this->stringContains(strtolower($class), $this->anything()));
 
                t3lib_autoloader::autoload($class);
        }
@@ -234,7 +234,7 @@ class t3lib_autoloaderTest extends Tx_Phpunit_TestCase {
                $GLOBALS['typo3CacheManager']->expects($this->any())->method('getCache')->will($this->returnValue($mockCache));
 
                        // Expect that an entry to the cache is written containing the newly found class
-               $mockCache->expects($this->once())->method('set')->with(TRUE, $this->stringContains(strtolower($file), TRUE));
+               $mockCache->expects($this->once())->method('set')->with($this->anything(), $this->stringContains(strtolower($file), $this->anything()));
 
                t3lib_autoloader::autoload($class);
        }