public function testWithFragmentReturnsNewInstanceWithProvidedFragment()
{
$uri = new Uri('https://user:[email protected]:3001/foo?bar=baz#quz');
$new = $uri->withFragment('qat');
$this->assertNotSame($uri, $new);
$this->assertEquals('qat', $new->getFragment());
$this->assertEquals('https://user:[email protected]:3001/foo?bar=baz#qat', (string) $new);
}