Skip to content

Commit e5aa486

Browse files
author
Antoine Aflalo
committed
fix(Tests): Take the Mockery counter into account for assertions
1 parent 6c64d6d commit e5aa486

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/src/Base/TestCase.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@
2323
*/
2424
class TestCase extends \PHPUnit\Framework\TestCase
2525
{
26+
27+
2628
public function tearDown()
2729
{
30+
if ($container = m::getContainer()) {
31+
$this->addToAssertionCount($container->mockery_getExpectationCount());
32+
}
2833
m::close();
2934
}
3035

0 commit comments

Comments
 (0)