Ejemplo n.º 1
0
 public function testGetAbsolutePath()
 {
     $this->assertContains("/", (string) $this->file->getAbsolutePath());
     $this->assertContains("/", (string) $this->file->getCanonicalPath());
     $this->assertContains("/", (string) $this->fileAbs->getAbsolutePath());
     $this->assertContains("/", (string) $this->dir->getAbsolutePath());
     $this->assertContains("/", (string) $this->dirAbs->getAbsolutePath());
     $this->assertContains("/", (string) $this->fileRoot->getAbsolutePath());
     $this->assertContains((string) System::getProperty('user.home'), (string) $this->file->getAbsolutePath());
     $this->assertContains((string) System::getProperty('user.home'), (string) $this->fileAbs->getAbsolutePath());
     $this->assertContains((string) System::getProperty('user.home'), (string) $this->dir->getAbsolutePath());
     $this->assertContains((string) System::getProperty('user.home'), (string) $this->dirAbs->getAbsolutePath());
     $this->assertContains((string) System::getProperty('user.home'), (string) $this->fileRoot->getAbsolutePath());
     $this->assertContains((string) $this->file->getPath(), (string) $this->file->getAbsolutePath());
     $this->assertContains((string) $this->fileAbs->getPath(), (string) $this->fileAbs->getAbsolutePath());
     $this->assertContains((string) $this->dir->getPath(), (string) $this->dir->getAbsolutePath());
     $this->assertContains((string) $this->dirAbs->getPath(), (string) $this->dirAbs->getAbsolutePath());
     $this->assertContains((string) $this->fileRoot->getPath(), (string) $this->fileRoot->getAbsolutePath());
 }