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)); }
public function testUrlNoSchemePath() { $oUrl = new UrlParserA_underTest('//localhost'); $this->assertEquals($oUrl->getCompleteUri(true), $oUrl->getCompleteParentUri(true)); }