public function testBasicSetPath() { $value = uniqid('test:'); $url = new Url(); $url->setPath($value); $this->assertEquals($value, $url->getPath()); }
/** * @param string $sPath * @returns UrlParserA */ public function addPath($sPath) { $sExistingPath = $this->oUrl->getPath(); if (substr($sExistingPath, -1) != '/') { $sPath = '/' . $sPath; } $this->oUrl->setPath($sExistingPath . $sPath); return $this; }
public function testInstantiationIsNull() { $url = new Url(); $this->assertEquals('', $url->getPath()); }