示例#1
0
文件: FileTest.php 项目: naucon/file
 /**
  * @depends     testExist
  * @return      void
  */
 public function testIsLink()
 {
     $path = __DIR__;
     $filePath = $path . '/example.txt';
     $fileObject = new File($filePath);
     $this->assertFalse($fileObject->isLink());
     $fileObject = new File($path);
     $this->assertFalse($fileObject->isLink());
     $fileObject = new \SplFileInfo($filePath);
     $this->assertFalse($fileObject->isLink());
     $fileObject = new \SplFileInfo($path);
     $this->assertFalse($fileObject->isLink());
 }