public function testIsAbsolute() { $this->assertTrue(CFilePath::isAbsolute("/path/to/file.png")); $this->assertFalse(CFilePath::isAbsolute("file.png")); $this->assertFalse(CFilePath::isAbsolute("path/to/file.png")); $this->assertTrue(CFilePath::isAbsolute("/")); $this->assertFalse(CFilePath::isAbsolute(".")); $this->assertFalse(CFilePath::isAbsolute("..")); }