Neos\Flow\Tests\Unit\Http\Component\TrustedProxiesComponentTest::portIsNotOverridenIfTheHeaderIsNotTrusted PHP Method

portIsNotOverridenIfTheHeaderIsNotTrusted() public method

    public function portIsNotOverridenIfTheHeaderIsNotTrusted()
    {
        $this->withTrustedProxiesSettings(['proxies' => '*', 'headers' => []]);
        $request = Request::create(new Uri('http://acme.com'), 'GET', array(), array(), array('HTTP_X_FORWARDED_PORT' => '443'));
        $trustedRequest = $this->callWithRequest($request);
        $this->assertEquals(80, $trustedRequest->getPort());
    }