/** * @expectedException \SamBurns\ConfigFileParser\Exception\FileNotReadable */ public function testGetExceptionForUnreadableFiles() { $fileContentsRetriever = new FileContentsRetriever(); $fileContentsRetriever->fileGetContents($this->unreadableFile); }
public function toArray() : array { $fileContents = $this->fileContentsRetriever->fileGetContents($this->path); return parse_ini_string($fileContents); }
public function toArray() : array { $fileContents = $this->fileContentsRetriever->fileGetContents($this->path); return json_decode($fileContents, true); }
public function toArray() : array { $fileContents = $this->fileContentsRetriever->fileGetContents($this->path); return $this->yamlParser->parse($fileContents); }