Answer the question
In order to leave comments, you need to log in
Why is the class not connected to the test through use?
Good afternoon!
Codeception is installed globally.
If in the test we connect the class via
require '/var/www/admin/www/project/common/models/Country.php';
namespace frontend\tests\unit;
use common\models\Country;
MePHP Fatal error: Class 'common\models\Country' not found in /var/www/admin/www/project/frontend/tests/unit/ModelTest.php on line 29
PHP Stack trace:
PHP 1. {main}() /root/.composer/vendor/codeception/codeception/codecept:0
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