/** * Tests the isHTTPS method of the OneLogin_Saml2_Utils * * @covers OneLogin_Saml2_Utils::isHTTPS */ public function testisHTTPS() { $this->assertFalse(OneLogin_Saml2_Utils::isHTTPS()); }
/** * @covers OneLogin_Saml2_Utils::setSelfProtocol */ public function testSetselfprotocol() { $this->assertFalse(OneLogin_Saml2_Utils::isHTTPS()); OneLogin_Saml2_Utils::setSelfProtocol('https'); $this->assertTrue(OneLogin_Saml2_Utils::isHTTPS()); }