Esempio n. 1
0
 public function testGetParent()
 {
     $this->assertEquals("tests", (string) $this->dir->getParent());
     $this->assertEquals(str_replace("/IO", "", __DIR__), (string) $this->dirAbs->getParent());
     $this->assertEquals("tests/IO", (string) $this->file->getParent());
     $this->assertEquals(__DIR__, (string) $this->fileAbs->getParent());
     $this->assertNull($this->fileRoot->getParent());
 }