Commit 1c9fc33a by Carsten Brandt

fixed HHVM test break

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