Example #1
0
 /**
  * @param string|array $paths
  */
 public function __construct($paths)
 {
     $paths = is_array($paths) ?: [$paths];
     foreach ($paths as $path) {
         $this->configurations = array_replace_recursive($this->configurations, ConfigLoaderFactory::load($path)->parse());
     }
 }
 /**
  * @test
  * @expectedException \Freyr\Envelope\ConfigLoader\UnsupportedConfigFileTypeException
  */
 public function parseBadPath()
 {
     $factory = new ConfigLoaderFactory();
     $loader = $factory->load(__DIR__ . '/../fixtures/full_config.php');
     $this->assertInstanceOf('Freyr\\Envelope\\ConfigLoader\\ConfigLoader', $loader);
 }