Project

General

Profile

Actions

Bug #78298

closed

phpunit fails with extensions on current master

Added by Stefan Froemken about 8 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
composer
Target version:
Start date:
2016-10-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hello Core-Team,

I can't run phpunit Tests for my extensions on current master of TYPO3: 9e27eb11ddcb7c3612b3cc786e77aec65d1e88b0

Error: Class xyz not found.
It seems that it is only a problem with extensions with a composer.json.

I have found following lines in Bootstrap::baseSetup:

if (!self::$usesComposerClassLoading && ClassLoadingInformation::isClassLoadingInformationAvailable()) {
    ClassLoadingInformation::registerClassLoadingInformation();
}

after adding a "!" to last condition it works for phpunit, but FE and BE are broken then.

if (!self::$usesComposerClassLoading && !ClassLoadingInformation::isClassLoadingInformationAvailable()) {
    ClassLoadingInformation::registerClassLoadingInformation();
}

Stefan

Actions

Also available in: Atom PDF