public function put($path, $contents) { return $this->fs->put($path, $contents); }
public function test_Should_WriteFile() { $fs = new LaravelFilesystem($this->app['files']); $fs->put(vfsStream::url('rootDir/file'), 'contents'); $putFile = $this->rootDir->getChild('file')->getContent(); $this->assertEquals('contents', $putFile); }