PhlyTest\Http\UriTest::testWithPortRaisesExceptionForInvalidPorts PHP Method

testWithPortRaisesExceptionForInvalidPorts() public method

    public function testWithPortRaisesExceptionForInvalidPorts($port)
    {
        $uri = new Uri('https://user:[email protected]:3001/foo?bar=baz#quz');
        $this->setExpectedException('InvalidArgumentException', 'Invalid port');
        $new = $uri->withPort($port);
    }
UriTest