public function testIsAbsolutePath() { $this->assertTrue(Paths::isAbsolutePath('C:\\windows\\system32')); $this->assertTrue(Paths::isAbsolutePath('http://google.com')); $this->assertTrue(Paths::isAbsolutePath('/usr/share')); $this->assertTrue(Paths::isAbsolutePath('/')); $this->assertFalse(Paths::isAbsolutePath('')); $this->assertFalse(Paths::isAbsolutePath('./test')); $this->assertFalse(Paths::isAbsolutePath('foo/bar')); $this->assertFalse(Paths::isAbsolutePath('../foo')); }