Clearing assertions on each test

This commit is contained in:
Alex Renoki 2020-09-15 17:03:28 +03:00
parent 7a17d3529f
commit df45ee89ff
1 changed files with 5 additions and 0 deletions

View File

@ -88,6 +88,11 @@ abstract class TestCase extends Orchestra
if ($this->replicationMode === 'redis') {
$this->registerRedis();
}
if (method_exists($this->channelManager, 'getPublishClient')) {
$this->getPublishClient()->resetAssertions();
$this->getSubscribeClient()->resetAssertions();
}
}
/**