/** * @expectedException \InvalidArgumentException */ public function testPortMustBeValid() { $uri = new Uri(''); $uri->withPort(100000); }