Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit df45ee8

Browse files
committed
Clearing assertions on each test
1 parent 7a17d35 commit df45ee8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/TestCase.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ public function setUp(): void
8888
if ($this->replicationMode === 'redis') {
8989
$this->registerRedis();
9090
}
91+
92+
if (method_exists($this->channelManager, 'getPublishClient')) {
93+
$this->getPublishClient()->resetAssertions();
94+
$this->getSubscribeClient()->resetAssertions();
95+
}
9196
}
9297

9398
/**

0 commit comments

Comments
 (0)