public function testStripsQueryPrefixIfPresent() { $uri = new Uri('http://example.com'); $new = $uri->withQuery('?foo=bar'); $this->assertEquals('foo=bar', $new->getQuery()); }