/**
* @dataProvider invalidSchemes
*/
public function testMutatingWithUnsupportedSchemeRaisesAnException($scheme)
{
$uri = new Uri('http://example.com');
$this->setExpectedException('InvalidArgumentException', 'Unsupported scheme');
$uri->withScheme($scheme);
}