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