Commit 5c646333 authored by Jeremy Mikola's avatar Jeremy Mikola

Clean up after passing Collection functional tests

parent fd3f6173
......@@ -55,5 +55,8 @@ class AggregateFunctionalTest extends FunctionalTestCase
);
$this->assertSame($expected, $outputCollection->find()->toArray());
// Manually clean up our output collection
$this->dropCollectionIfItExists($outputCollection);
}
}
......@@ -21,6 +21,15 @@ abstract class FunctionalTestCase extends BaseFunctionalTestCase
$this->dropCollectionIfItExists($this->collection);
}
public function tearDown()
{
if ($this->hasFailed()) {
return;
}
$this->dropCollectionIfItExists($this->collection);
}
/**
* Drop the collection if it exists.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment