Commit 1c9fc33a by Carsten Brandt

fixed HHVM test break

parent d6d5a4eb
......@@ -35,10 +35,12 @@ class MigrateControllerTest extends MongoDbTestCase
public function tearDown()
{
parent::tearDown();
try {
$this->getConnection()->getCollection('migration')->drop();
} catch (Exception $e) {
// shutdown exception
if (extension_loaded('mongo')) {
try {
$this->getConnection()->getCollection('migration')->drop();
} catch (Exception $e) {
// shutdown exception
}
}
$this->tearDownMigrationPath();
}
......
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