Beispiel #1
0
 /**
  * @depends     testExist
  * @return      void
  */
 public function testIsDir()
 {
     $path = __DIR__;
     $filePath = $path . '/example.txt';
     $fileObject = new File($filePath);
     $this->assertFalse($fileObject->isDirectory());
     $this->assertFalse($fileObject->isDir());
     $fileObject = new File($path);
     $this->assertTrue($fileObject->isDirectory());
     $this->assertTrue($fileObject->isDir());
     $fileObject = new \SplFileInfo($filePath);
     $this->assertFalse($fileObject->isDir());
     $fileObject = new \SplFileInfo($path);
     $this->assertTrue($fileObject->isDir());
 }