@@ -14,7 +13,6 @@ use MongoDB\Tests\FunctionalTestCase as BaseFunctionalTestCase;
useMongoDB\Tests\TestCase;
usePHPUnit\Framework\SkippedTest;
useArrayIterator;
useInvalidArgumentException;
useIteratorIterator;
useLogicException;
useMultipleIterator;
...
...
@@ -32,21 +30,18 @@ class FunctionalTestCase extends BaseFunctionalTestCase
constTOPOLOGY_REPLICASET='replicaset';
constTOPOLOGY_SHARDED='sharded';
private$configuredFailPoints=[];
private$context;
publicfunctionsetUp()
{
parent::setUp();
$this->configuredFailPoints=[];
$this->context=null;
}
publicfunctiontearDown()
{
$this->context=null;
$this->disableFailPoints();
parent::tearDown();
}
...
...
@@ -141,39 +136,6 @@ class FunctionalTestCase extends BaseFunctionalTestCase
$this->markTestSkipped(sprintf('Server version "%s" and topology "%s" do not meet test requirements: %s',$serverVersion,$topology,json_encode($runOn)));
}
/**
* Configure a fail point for the test.
*
* The fail point will automatically be disabled during tearDown() to avoid