/** * Test that specific schemes are invalid for this class * * @param string $scheme * @dataProvider invalidSchemeProvider */ public function testInvalidScheme($scheme) { $uri = new FileUri; $this->setExpectedException('Zend\Uri\Exception\InvalidUriPartException'); $uri->setScheme($scheme); }