コード例 #1
0
ファイル: Reader.php プロジェクト: philipbrown/payload
 /**
  * Require the contents of the file
  *
  * @param string $path
  * @return array
  */
 public function get($path)
 {
     if ($this->check($path)) {
         return File::get($path);
     }
 }
コード例 #2
0
ファイル: FileTest.php プロジェクト: philipbrown/payload
 /** @test */
 public function should_get_a_file()
 {
     $contents = File::get(sprintf('%s/stubs/data.php', __DIR__));
     $this->assertEquals(['hello' => 'world'], $contents);
 }