/** * * @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(); }
/** * 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; }