Skip to content

Unit testing fails after upgrade to Symfony 3.2.5 #21954

@webinarium

Description

@webinarium
Q A
Bug report? yes
Feature request? no
BC Break report? yes
RFC? no
Symfony version 3.2.5

After the upgrade from 3.2.4 to 3.2.5 the ./vendor/bin/simple-phpunit command fails with the following in the PHP log:

PHP Fatal error:  Class 'PHPUnit\Framework\TestCase' not found in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php on line 24
PHP Stack trace:
PHP   1. {main}() vendor/symfony/phpunit-bridge/bin/.phpunit/phpunit-5.3/phpunit:0
PHP   2. PHPUnit_TextUI_Command::main() vendor/symfony/phpunit-bridge/bin/.phpunit/phpunit-5.3/phpunit:5
PHP   3. PHPUnit_TextUI_Command->run() vendor/symfony/phpunit-bridge/bin/.phpunit/phpunit-5.3/src/TextUI/Command.php:110
PHP   4. PHPUnit_TextUI_Command->handleArguments() vendor/symfony/phpunit-bridge/bin/.phpunit/phpunit-5.3/src/TextUI/Command.php:121
PHP   5. PHPUnit_Util_Configuration->getTestSuiteConfiguration() vendor/symfony/phpunit-bridge/bin/.phpunit/phpunit-5.3/src/TextUI/Command.php:724
PHP   6. PHPUnit_Util_Configuration->getTestSuite() vendor/symfony/phpunit-bridge/bin/.phpunit/phpunit-5.3/src/Util/Configuration.php:819
PHP   7. PHPUnit_Framework_TestSuite->addTestFiles() vendor/symfony/phpunit-bridge/bin/.phpunit/phpunit-5.3/src/Util/Configuration.php:908
PHP   8. PHPUnit_Framework_TestSuite->addTestFile() vendor/symfony/phpunit-bridge/bin/.phpunit/phpunit-5.3/src/Framework/TestSuite.php:384
PHP   9. PHPUnit_Util_Fileloader::checkAndLoad() vendor/symfony/phpunit-bridge/bin/.phpunit/phpunit-5.3/src/Framework/TestSuite.php:310
PHP  10. PHPUnit_Util_Fileloader::load() vendor/symfony/phpunit-bridge/bin/.phpunit/phpunit-5.3/src/Util/Fileloader.php:38
PHP  11. include_once() vendor/symfony/phpunit-bridge/bin/.phpunit/phpunit-5.3/src/Util/Fileloader.php:56
PHP  12. spl_autoload_call() tests/AppBundle/Command/UuidCommandTest.php:18
PHP  13. Composer\Autoload\ClassLoader->loadClass() tests/AppBundle/Command/UuidCommandTest.php:18
PHP  14. Composer\Autoload\includeFile() vendor/symfony/phpunit-bridge/bin/.phpunit/phpunit-5.3/vendor/composer/ClassLoader.php:322
PHP  15. include() vendor/symfony/phpunit-bridge/bin/.phpunit/phpunit-5.3/vendor/composer/ClassLoader.php:440
PHP  16. spl_autoload_call() vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php:21
PHP  17. Composer\Autoload\ClassLoader->loadClass() vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php:21
PHP  18. Composer\Autoload\includeFile() vendor/symfony/phpunit-bridge/bin/.phpunit/phpunit-5.3/vendor/composer/ClassLoader.php:322
PHP  19. include() vendor/symfony/phpunit-bridge/bin/.phpunit/phpunit-5.3/vendor/composer/ClassLoader.php:440

Double checked with 3.2.4 - works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions