Beispiel #1
0
 /**
  * @param Skill $skill
  */
 protected function postDelete(Skill $skill)
 {
     // delete folder
     $module = $this->getServiceContainer()->getModuleManager()->load('gossi/trixionary');
     $dir = new Directory($module->getSkillPath($skill));
     $dir->delete();
 }
Beispiel #2
0
 /**
  * @expectedException phootwork\file\exception\FileException
  */
 public function testDeleteWithFailure()
 {
     $prj = new Directory($this->createProject());
     $root = new Directory($this->root->url());
     $root->setMode(0555);
     $prj->delete();
 }