public function portInProxyHeaderIsAcknowledged()
{
$scriptName = $_SERVER['SCRIPT_NAME'];
$_SERVER = array('HTTP_HOST' => 'dev.blog.rob', 'HTTP_X_FORWARDED_PORT' => 2727, 'SERVER_NAME' => 'dev.blog.rob', 'SERVER_ADDR' => '127.0.0.1', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '127.0.0.1', 'REQUEST_URI' => '/posts/2011/11/28/laboriosam-soluta-est-minus-molestiae?getKey1=getValue1&getKey2=getValue2', 'REQUEST_TIME' => 1326472534);
$request = Request::create(new Uri('https://dev.blog.rob/foo/bar?baz=quux&coffee=due'), array(), array(), array(), $_SERVER);
$trustedRequest = $this->callWithRequest($request);
$this->assertSame(2727, $trustedRequest->getPort());
$_SERVER['SCRIPT_NAME'] = $scriptName;
}