/** * @expectedException RuntimeException */ public function testLoadConfigurationEnvironmentEmpty() { $defaulConfiguration = __DIR__ . '/../../config/default.yml'; $locator = new FileLocator([]); $configLoader = new Config([new YamlLoader($locator)]); $config = new Configuration($configLoader, $defaulConfiguration); $values = $config->loadConfiguration(__DIR__ . '/../fixtures/project', ''); }
/** * @expectedException RuntimeException * @expectedExceptionMessage Expected a non-empty string as environment name. */ public function testEnvironmentEmpty() { $locator = new FileLocator([]); $configLoader = new Config([new YamlLoader($locator)]); $config = new Configuration($configLoader, $this->defaulConfiguration); $config->loadConfiguration(__DIR__ . '/../fixtures/project', ''); }