/** * Test get host with port doesn't duplicate port numbers */ public function testGetHostDoesntDuplicatePort() { $env = \Slim\Environment::mock(array('HTTP_HOST' => 'slimframework.com:80', 'SERVER_NAME' => 'slim', 'SERVER_PORT' => 80, 'slim.url_scheme' => 'http')); $req = new \Slim\Http\Request($env); $this->assertEquals('slimframework.com:80', $req->getHostWithPort()); }