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