public testGetForRelativePathWithOnlyQueryString ( ) |
public function testGetForRelativePathWithOnlyQueryString()
{
$url = new Http\Url('http://example.org/test');
$relative = $url->getUrlForRelativePath('?blargh=1');
$this->assertEquals($relative->__toString(), 'http://example.org/test?blargh=1');
}