Project

General

Profile

Actions

Bug #64055

closed

PHPUnit-Tests fail on Windows (2)

Added by Stephan Großberndt almost 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
Start date:
2014-12-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

Another test failing on windows (similar to #63943)

Fatal error: Cannot redeclare class TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtility54a1a650122b7 in D:\typo3\master\typo3\sysext\backend\Tests\Unit\Utility\BackendUtilityTest.php(242) : eval()'d code on line 1

This is due to

    public function getProcessedValueForGroupWithMultipleAllowedTables() {
        // Disable getRecordWSOL and getRecordTitle dependency by returning stable results
        /** @var \PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Backend\Utility\BackendUtility $subject */
        $className = uniqid('BackendUtility');
        $subject = __NAMESPACE__ . '\\' . $className;

which has to be replaced with

$className = 'BackendUtility' . md5(uniqid(mt_rand(), TRUE));

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #63943: PHPUnit-Tests fail on WindowsClosedStephan Großberndt2014-12-16

Actions
Actions

Also available in: Atom PDF