예제 #1
0
파일: FileTest.php 프로젝트: phootwork/file
 /**
  * @expectedException phootwork\file\exception\FileException
  */
 public function testCopyWithFailure()
 {
     $dir = new Directory($this->root->url() . '/dir');
     $dir->make(0555);
     $file = new File($this->root->url() . '/composer.json');
     $file->write('{}');
     $file->copy(new Path($this->root->url() . '/dir/composer.json'));
 }