A
A
alex5e2017-02-09 02:11:38
Yii
alex5e, 2017-02-09 02:11:38

How to run Yii2 tests?

Installed fresh yii2-advanced, added packages:
codeception/codeception,
codeception/verify,
codeception/specify.
Ran codecept build . LoginFormTest.php was created in common/test
And after codecept run got exception
"PHP Fatal error: Uncaught Error: Call to undefined method common\tests\unit\models\LoginFormTest::setGroups() in C:\xampp\htdocs\apiuchimb \vendor\phpunit\phpu
nit\src\Framework\TestSuite.php:229"
Codeception v2.1.5
PHPUnit 4.8.22
Has anyone encountered this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2017-02-09
@slo_nik

Goodnight.
Perhaps this article will help you .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question