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