/** * @expectedException RuntimeException */ public function testShouldThrowExceptionWhenDeletionNotPermitted() { $this->root->chmod(0555); $this->root->getChild('testfile2')->chmod(0555); $localDelete = new DefaultDelete($this->root->url() . '/testfile2'); $localDelete->execute(); }
public function execute() { $delete = new DefaultDelete($this->getSource()); $copy = new DefaultCopy($this->getSource(), $this->getDestination()); $copy->execute(); $delete->execute(); }