예제 #1
0
파일: PathsTest.php 프로젝트: jivoo/jivoo
 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'));
 }