예제 #1
0
 /**
  * * @expectedException \Exception
  */
 public function testParseInvalidPath()
 {
     $root = vfsStream::setup('Configuration');
     $file = vfsStream::newFile('production.ini');
     $root->addChild($file);
     $file->withContent($this->iniData);
     $parser = new IniFileAdapter(vfsStream::url("Configuration/invalidConfigPath.ini"));
     $parser->parse();
 }
예제 #2
0
 /**
  * Returns the Adapter instance
  *
  * @return IniFileAdapter
  */
 public function getInstance()
 {
     if ($this->adapter === null) {
         $iniAdapter = new IniFileAdapter($this->path);
         $iniAdapter->parse();
         $this->adapter = $iniAdapter;
     }
     return $this->adapter;
 }