Open kschroeer opened 4 years ago
This can be solved by adding below code snippet to tearDown
method of your test case class:
$this->addToAssertionCount(\Hamcrest\MatcherAssert::getCount());
Some more ideas:
tearDown
method in your test classes, then adding tearDown
method via trait is also possible
I have some problems to use Hamcrest in combination with PHPUnit. I loaded phpuNit 7.0 and hamcrest-php (dev-master) with composer. The environment is PHP 7.2.
And then I build this first test:
Executing the test I will get this error message: