Ejemplo n.º 1
0
 public function testAddRelativePathWithCurrentDirectory()
 {
     $sLocalHost = 'http://localhost';
     $sStr = 'ana/./are/mere';
     $oUrl = new UrlParserA_underTest($sLocalHost);
     $oUrl->addPath($sStr);
     $sCurrentStr = str_replace('./', '', $sStr);
     $this->assertEquals($sLocalHost . '/' . $sCurrentStr, $oUrl->getCompleteUri(true));
 }
Ejemplo n.º 2
0
 public function testUrlNoSchemePath()
 {
     $oUrl = new UrlParserA_underTest('//localhost');
     $this->assertEquals($oUrl->getCompleteUri(true), $oUrl->getCompleteParentUri(true));
 }