Configuration priority: Default -> config.yml -> config_:env.yml where ":env" is the environment name.
Author: Victor Puertas (vpgugr@gmail.com)
Inheritance: implements Yosymfony\Spress\Core\Configuration\ConfigurationInterface
Beispiel #1
0
 /**
  * @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', '');
 }