Happyr\LinkedIn\Http\UrlGeneratorTest::testHttpProtocolForwardedSecure PHP Method

testHttpProtocolForwardedSecure() public method

    public function testHttpProtocolForwardedSecure()
    {
        $_SERVER['HTTP_X_FORWARDED_PROTO'] = 'https';
        $gen = new DummyUrlGenerator();
        $this->assertEquals('http', $gen->GetHttpProtocol());
        $gen->setTrustForwarded(true);
        $this->assertEquals('https', $gen->GetHttpProtocol());
    }