Пример #1
0
 public function testCopy_noPerms()
 {
     $file = new \r8\FileSys\File($this->file);
     chmod($this->file, 00);
     try {
         $file->copy($this->getTempFileName());
         $this->fail("An expected exception was not thrown");
     } catch (\r8\Exception\FileSystem $err) {
         $this->assertSame("Unable to copy file", $err->getMessage());
     }
 }