get() public method

Read a file.
public get ( string $path ) : string
$path string File path
return string Contents
 public function test_Should_ReadFile()
 {
     $file = vfsStream::newFile('file')->at($this->rootDir)->setContent('contents');
     $fs = new LaravelFilesystem($this->app['files']);
     $getFile = $fs->get(vfsStream::url('rootDir/file'));
     $this->assertEquals('contents', $getFile);
 }