We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eeffae7 + cf3fcd5 commit 9e6948dCopy full SHA for 9e6948d
tests/FunctionalTestCase.php
@@ -17,7 +17,6 @@
17
use MongoDB\Operation\DatabaseCommand;
18
use MongoDB\Operation\ListCollections;
19
use stdClass;
20
-use Throwable;
21
use UnexpectedValueException;
22
23
use function array_intersect_key;
@@ -70,15 +69,12 @@ public function setUp(): void
70
69
$this->configuredFailPoints = [];
71
}
72
73
- protected function onNotSuccessfulTest(Throwable $t): never
74
- {
75
- $this->cleanupCollections();
76
-
77
- throw $t;
78
- }
79
80
public function tearDown(): void
81
{
+ if ($this->status()->isSuccess()) {
+ $this->cleanupCollections();
+ }
+
82
$this->disableFailPoints();
83
84
parent::tearDown();
0 commit comments