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