public function testGetAuthorityWithNonStandardPort() { $scheme = 'https'; $user = ''; $password = ''; $host = 'example.com'; $path = '/foo/bar'; $port = 400; $query = 'abc=123'; $fragment = 'section3'; $uri = new Uri($scheme, $host, $port, $path, $query, $fragment, $user, $password); $this->assertEquals('example.com:400', $uri->getAuthority()); }