示例#1
0
 public function testGetOwner()
 {
     $this->assertEquals(fileowner(TESTS_FSI_LOCALFILE_TMP_PATH . '/myFile.ext'), $this->fixture_file->getOwner());
     $otherFile = new LocalFile(TESTS_FSI_LOCALFILE_TMP_PATH . '/myFile2.ext');
     try {
         $otherFile->getOwner();
         $this->fail();
     } catch (EyeStatFailedException $e) {
         // normal situation
     }
 }