public function testGettingUrlForPathTrimsQueryString() { $url = new Http\Url('http://example.org/my/path?test=1'); $relative = $url->getUrlForPath('/test/path'); $this->assertEquals($relative->__toString(), 'http://example.org/test/path'); }