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