コード例 #1
0
ファイル: File.php プロジェクト: Nycto/Round-Eights
 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());
     }
 }