/** * @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')); }