Commit 1c9fc33a by Carsten Brandt

fixed HHVM test break

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