Project

General

Profile

Actions

Bug #27692

closed

FileBackendTest setThrowsExceptionForInvalidIdentifier fails

Added by Steffen Gebert over 13 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Tests
Target version:
-
Start date:
2011-06-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions

Also available in: Atom PDF