예제 #1
0
 public function testDeleteDirectory()
 {
     $this->root->addChild(new vfsStreamDirectory('temp'));
     $dir = $this->root->getChild('temp');
     $file = vfsStream::newFile('bar.txt')->withContent('bar')->at($dir);
     $this->assertTrue(is_dir($dir->url()));
     $this->assertFalse($this->files->deleteDirectory($file->url()));
     $this->files->deleteDirectory($dir->url());
     $this->assertFalse(is_dir(vfsStream::url('root/temp')));
     $this->assertFileNotExists($file->url());
 }
예제 #2
0
 public function tearDown()
 {
     $this->files->deleteDirectory(__DIR__ . '/stubs');
 }