Answer the question
In order to leave comments, you need to log in
PHPStorm + PHPUnit + Symfony can't find class when testing. How to setup?
Hello. I'm trying to set up testing through the PHPStorm interface. But it doesn't work.
If I run scripts through the command line with the command php bin/phpunit --testsuite=unit
, then the tests are launched. If I run tests through PHPStorm, it swears that the class does not exist. Although everything is fine in the console. The error itself:
Error : Class 'App\Tests\Builder\User\UserBuilder' not found. What is the problem?
..../app/bin/.phpunit/phpunit-7.5-0/phpunit
. The framework finds in PHPStorm. /app/tests/Unit
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question