/** * @return FileManager */ private function getFileManager() { if (!$this->initialized) { $this->fileManager->setCurrentPath($this->getCurrentPath()); } return $this->fileManager; }
/** * @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')); }