Esempio n. 1
0
 protected function createConfig(Input\InputInterface $input)
 {
     $config_path = $input->getOption('config');
     if (empty($config_path)) {
         $config_path = $this->getLookupDir($input) . DIRECTORY_SEPARATOR . 'dat0r.ini';
     }
     $config_reader = Config\IniFileConfigReader::create();
     $settings = $config_reader->read($config_path);
     $this->service_config = Config\Config::create($settings);
     return $this->service_config;
 }
 /**
  * @expectedException Dat0r\CodeGen\Config\Exception
  */
 public function testNonParseableConfig()
 {
     $reader = Config\IniFileConfigReader::create();
     $reader->read($this->fixtures_dir . self::FIXTURE_NON_PARSEABLE_CONFIG);
     // @codeCoverageIgnoreStart
 }