Esempio n. 1
0
 public function testExists()
 {
     $dir = new \r8\FileSys\Dir();
     $dir->setPath(__DIR__);
     $this->assertTrue($dir->exists());
     $dir->setPath(__FILE__);
     $this->assertFalse($dir->exists());
     $dir->setPath("/this/is/not/a/real/path");
     $this->assertFalse($dir->exists());
 }