public function execute() { $delete = new DefaultDelete($this->getSource()); $copy = new DefaultCopy($this->getSource(), $this->getDestination()); $copy->execute(); $delete->execute(); }
/** * @expectedException RuntimeException */ public function testShouldThrowExceptionWhenFileNotFound() { $copy = new DefaultCopy($this->root->url() . '/nonexistentfile', $this->root->url() . '/nonexistentfilecopy'); $copy->execute(); }