getHostRelativeUrl() public method

The URL components after the host.
public getHostRelativeUrl ( ) : string
return string
Example #1
0
 public function testBriefHttpUrlUsage()
 {
     $url = new Http\Url('http://example.org/');
     $this->assertEquals($url->getHostRelativeUrl(), '/');
     $this->assertEquals($url->getSchemeRelativeUrl(), '//example.org/');
 }