We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

PHPUnit with --group

Hi All

I'm starting to work with PHPUnit for unit testing my code. I'm just using the standard boostrap file and UnitTestCase from he docs. I'm trying to group my tests by e.g. @group models, and the run phpunit --group models. The test runs fine and i get the reults, but I'm also getting an nncaught exception 'PHPUnit_FrameworkIncompleteTestError' with message 'Please run parent::setUp(). This is from the \_destruct() method in UnitTestCase. The stange thing is that this exception is not thrown if i just run phpunit. Can anyone explain this?

Thanks in advance

see Drupal 8 code:

in: /drupal/web/core/phpunit.xml