Example #1
0
 protected function createConfig(InputInterface $input)
 {
     $config_path = $input->getOption('config');
     if (empty($config_path)) {
         $config_path = $this->getLookupDir($input) . DIRECTORY_SEPARATOR . 'trellis.ini';
     }
     if (!is_readable($config_path)) {
         throw new NotReadableException(sprintf("Config file is not readable at location: `%s`", $config_path));
     }
     $config_parser = new ConfigIniParser();
     $service_config = $config_parser->parse($config_path);
     return $service_config;
 }
Example #2
0
 /**
  * @expectedException Trellis\Common\Error\ParseException
  */
 public function testNonParseableConfig()
 {
     $parser = new ConfigIniParser();
     $parser->parse($this->fixtures_dir . self::FIXTURE_NON_PARSEABLE_CONFIG);
     // @codeCoverageIgnoreStart
 }