public function testHttpProtocolNginx() { $_SERVER['SERVER_PORT'] = '443'; $gen = new DummyUrlGenerator(); $this->assertEquals('https', $gen->GetHttpProtocol()); }