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);
 }
Ejemplo n.º 2
0
 protected function create_virtual_filesystem($structure = [])
 {
     VfsStream::setup('root_dir', null, $structure);
     config(['content.root' => VfsStream::url('root_dir')]);
 }