public function testStripsFragmentPrefixIfPresent() { $uri = new Uri('http://example.com'); $new = $uri->withFragment('#/foo/bar'); $this->assertEquals('/foo/bar', $new->getFragment()); }