Builds a URL with a path component that is relative to the current one
public getUrlForRelativePath ( $path ) : |
||
return |
public function testGetForRelativePathWithOnlySlash() { $url = new Http\Url('http://example.org/test'); $relative = $url->getUrlForRelativePath('/'); $this->assertEquals($relative->__toString(), 'http://example.org/test'); }