getMigration(); try { $migration->migrate(); $this->fail('Should fail'); } catch (\LogicException $e) { } } public function testMigrate() { $this->goBackTo31(); $migration = $this->getMigration(); $migration->migrate(); require __DIR__ . '/../../../../../../../config/config.inc'; $this->assertEquals('http://local.phrasea.tester/', $servername); unlink(__DIR__ . '/../../../../../../../config/_GV.php.old'); unlink(__DIR__ . '/../../../../../../../config/config.inc'); } private function getMigration() { return new Migration31(new Application(Application::ENV_TEST)); } }