public function testConstructorRaisesExceptionForNonStringURI($uri) { $this->setExpectedException('InvalidArgumentException'); new Uri($uri); }