Skip to content

PHPUnit FrameworkBundle: Failing due to missing class #32755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tweichart opened this issue Jul 26, 2019 · 2 comments
Closed

PHPUnit FrameworkBundle: Failing due to missing class #32755

tweichart opened this issue Jul 26, 2019 · 2 comments

Comments

@tweichart
Copy link

Symfony version(s) affected: 4.4

Description
Running php ./phpunit src/Symfony/Bundle/FrameworkBundle locally results in the following error message:

$ php ./phpunit src/Symfony/Bundle/FrameworkBundle
#!/usr/bin/env php
PHPUnit 6.5.14 by Sebastian Bergmann and contributors.

Testing src/Symfony/Bundle/FrameworkBundle
.........PHP Fatal error:  During class fetch: Uncaught ReflectionException: Class Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Validation\NotExistingInterface does not exist in /dev/symfony/src/Symfony/Component/Cache/Adapter/PhpArrayAdapter.php:295
Stack trace:
#0 [internal function]: Symfony\Component\Cache\Adapter\PhpArrayAdapter::throwOnRequiredClass('Symfony\\Bundle\\...')
#1 /dev/symfony/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Article.php(5): spl_autoload_call('Symfony\\Bundle\\...')
#2 /dev/symfony/src/Symfony/Component/ErrorHandler/DebugClassLoader.php(159): include('/Users/tobias.w...')
#3 [internal function]: Symfony\Component\ErrorHandler\DebugClassLoader->loadClass('Symfony\\Bundle\\...')
#4 [internal function]: spl_autoload_call('Symfony\\Bundle\\...')
#5 /dev/symfony/src/Symfony/Component/Validator/Mapping/Factory/LazyLoadingMetadataFactory.php(163): class_exists('Symfony\\Bundle\\...')
#6 in /dev/symfony/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Article.php on line 5

Fatal error: During class fetch: Uncaught ReflectionException: Class Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Validation\NotExistingInterface does not exist in /dev/symfony/src/Symfony/Component/Cache/Adapter/PhpArrayAdapter.php:295
Stack trace:
#0 [internal function]: Symfony\Component\Cache\Adapter\PhpArrayAdapter::throwOnRequiredClass('Symfony\\Bundle\\...')
#1 /dev/symfony/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Article.php(5): spl_autoload_call('Symfony\\Bundle\\...')
#2 /dev/symfony/src/Symfony/Component/ErrorHandler/DebugClassLoader.php(159): include('/Users/tobias.w...')
#3 [internal function]: Symfony\Component\ErrorHandler\DebugClassLoader->loadClass('Symfony\\Bundle\\...')
#4 [internal function]: spl_autoload_call('Symfony\\Bundle\\...')
#5 /dev/symfony/src/Symfony/Component/Validator/Mapping/Factory/LazyLoadingMetadataFactory.php(163): class_exists('Symfony\\Bundle\\...')
#6 in /dev/symfony/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Article.php on line 5

Legacy deprecation notices (6)

How to reproduce
Execute php ./phpunit src/Symfony/Bundle/FrameworkBundle. Same error occurs when executing php ./phpunit symfony.

Additional context
PHP Version: 7.2.20
PHPUnit Version: 6.5.14
Composer Version: 1.8.6
Symfony Version: Fresh checkout from 4.4 branch (last commit according to git log is a28609c)
OS: macOS Mojave 10.14.6
Project was setup in the default way, checking out project und running composer install.

@fancyweb
Copy link
Contributor

Same reason than #32395

@tweichart
Copy link
Author

executed with 7.2.19, works now. thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants