Ejemplo n.º 1
0
 /**
  * @return FileManager
  */
 private function getFileManager()
 {
     if (!$this->initialized) {
         $this->fileManager->setCurrentPath($this->getCurrentPath());
     }
     return $this->fileManager;
 }
Ejemplo n.º 2
0
 /**
  * @covers DmFileman\Service\FileManager\FileManager
  */
 public function testDeleteTree()
 {
     $actualResult = $this->sut->deleteTree(vfs\vfsStream::url('upload/orig'));
     $this->assertTrue($actualResult);
     $this->assertFileNotExists(vfs\vfsStream::url('upload/orig'));
 }