public function testDirDelete()
 {
     $prophecy = $this->prophesize('League\\Flysystem\\FilesystemInterface');
     $prophecy->deleteDir('path')->willReturn(true);
     $filesystem = $prophecy->reveal();
     $dir = new Directory(null, 'path');
     $dir->setFilesystem($filesystem);
     $output = $dir->delete();
     $this->assertTrue($output);
 }