/** * Require the contents of the file * * @param string $path * @return array */ public function get($path) { if ($this->check($path)) { return File::get($path); } }
/** @test */ public function should_get_a_file() { $contents = File::get(sprintf('%s/stubs/data.php', __DIR__)); $this->assertEquals(['hello' => 'world'], $contents); }