assertEquals('dev', $config->getDefaultEnvironment()); } /** * @covers \Phinx\Config\Config::fromPhp * @covers \Phinx\Config\Config::getDefaultEnvironment * @expectedException \RuntimeException */ public function testFromPHPMethodWithoutArray() { $path = __DIR__ . '/_files'; $config = Config::fromPhp($path . '/config_without_array.php'); $this->assertEquals('dev', $config->getDefaultEnvironment()); } /** * @covers \Phinx\Config\Config::fromPhp * @covers \Phinx\Config\Config::getDefaultEnvironment * @expectedException \RuntimeException */ public function testFromJSONMethodWithoutJSON() { $path = __DIR__ . '/_files'; $config = Config::fromPhp($path . '/empty.json'); $this->assertEquals('dev', $config->getDefaultEnvironment()); } }