Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions tests/FunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use MongoDB\Operation\DatabaseCommand;
use MongoDB\Operation\ListCollections;
use stdClass;
use Throwable;
use UnexpectedValueException;

use function array_intersect_key;
Expand Down Expand Up @@ -70,15 +69,12 @@ public function setUp(): void
$this->configuredFailPoints = [];
}

protected function onNotSuccessfulTest(Throwable $t): never
{
$this->cleanupCollections();

throw $t;
}

public function tearDown(): void
{
if ($this->status()->isSuccess()) {
$this->cleanupCollections();
}

$this->disableFailPoints();

parent::tearDown();
Expand Down
Loading