Issue Bug Closed

#27692FileBackendTest setThrowsExceptionForInvalidIdentifier fails

Steffen Gebert 06/25/11, 00:01 updated 06/01/13, 14:43

Description

t3lib_cache_backend_FileBackendTest::setThrowsExceptionForInvalidIdentifier tests fail with

PHP Warning: Missing argument 1 for t3lib_cache_backend_AbstractBackend::__construct(),
called in typo3conf/ext/phpunit/PEAR/PHPUnit/Framework/MockObject/Generator.php on line 190 and
defined in t3lib/cache/backend/class.t3lib_cache_backend_abstractbackend.php line 77

Mocking is done this way:

$backend = $this->getMock('t3lib_cache_backend_FileBackend', array('dummy'), array(), '', TRUE);

but should be

$backend = $this->getMock('t3lib_cache_backend_FileBackend', array('dummy'), array('test'), '', TRUE);

However, it is weird that other tests using a very similar code don’t fail.

Reviews 1