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 #1

Updated by Mr. Hudson over 13 years ago

Patch set 1 of change Ib38f602723826340a5c3afd0a9f79cc9aa1dae66 has been pushed to the review server.
It is available at http://review.typo3.org/2923

Actions #2

Updated by Steffen Gebert over 13 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions #3

Updated by Steffen Gebert over 13 years ago

  • Target version set to 1281
Actions #4

Updated by Xavier Perseguers over 12 years ago

  • Status changed from Resolved to Closed
Actions #5

Updated by Ernesto Baschny over 11 years ago

  • Target version deleted (1281)
Actions

Also available in: Atom PDF