D
D
Dos2019-12-21 04:28:54
symfony
Dos, 2019-12-21 04:28:54

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?
I set up Test Framework from the project path of the bin folder ..../app/bin/.phpunit/phpunit-7.5-0/phpunit. The framework finds in PHPStorm.
Testing configure the entire folder/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 question

Ask a Question

731 491 924 answers to any question