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