Hello. I have a clean Yii2 advanced-template installed. When running the test command:

codecept run unit - -c backend ExampleTest

I get a fatal error:

Call to undefined method backend \ tests \ ExampleTest :: setGroups () in /my/path/to/vendor/phpunit/phpunit/src/Framework/TestSuite.php on line 229

Any idea what went wrong? Thank.

  • Have you watched phpunit.xml ? Viewed the class backend\tests\ExampleTest ? - korytoff
  • @korytoff, everything is fine there, but the tests were started using the command: composer exec codecept run unit - -c backend - Felix

0