function it_determines_whether_a_given_file_exists() { $this->exists('foo.txt')->shouldBe(true); unlink(VfsStream::url('root_dir/foo.txt')); $this->exists('foo.txt')->shouldBe(false); }
protected function create_virtual_filesystem($structure = []) { VfsStream::setup('root_dir', null, $structure); config(['content.root' => VfsStream::url('root_dir')]); }