-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Class 'PHPUnit_Framework_TestCase' not found #21816
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
Comments
Hi, this is happening because you are probably using PHPUnit 6 which no longer supports |
Hi @theofidry, That was it! Now everything works as expected. Thank you a lot 👍 I'm closing this issue. Regards, |
@fabienlem Thanks for reporting your issue anyway. We will update the documentation in symfony/symfony-docs#7556 to reflect these changes in PHPUnit. |
@xabbuh don't spend too much time on this. Next releases (in all branches) will be compatible with PHPUnit 6 |
@stof I know. The docs PR just updates the examples to not use the old classes anymore (but use the namespaced classes instead). |
As described in: symfony/symfony#21816
This was helpful |
// use the following namespace // extend using TestCase instead PHPUnit_Framework_TestCase } |
Hello symfony's team,
I'm experiencing an issue with Symfony 3.2.4. I want to implement functionnal tests by following this documentation: http://symfony.com/doc/current/best_practices/tests.html
When I run the test with the following command:
phpunit tests/AppBundle
I got an error:
Class 'PHPUnit_Framework_TestCase' not found
I'm using the latest stable PHPUnit version, installed as PHAR.
Is it a bug or did I missed something? I can't find further information about this issue.
Thank you a lot for your help.
Kind regards,
Fabien
The text was updated successfully, but these errors were encountered: