예제 #1
0
 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();
 }