예제 #1
0
 /**
  * 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
 /** @test */
 public function should_get_a_file()
 {
     $contents = File::get(sprintf('%s/stubs/data.php', __DIR__));
     $this->assertEquals(['hello' => 'world'], $contents);
 }