isHTTPS() public static method

Checks if https or http.
public static isHTTPS ( ) : boolean
return boolean $isHttps False if https is not active
Example #1
0
 /**
  * Tests the isHTTPS method of the OneLogin_Saml2_Utils
  *
  * @covers OneLogin_Saml2_Utils::isHTTPS
  */
 public function testisHTTPS()
 {
     $this->assertFalse(OneLogin_Saml2_Utils::isHTTPS());
 }
Example #2
0
 /**
  * @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());
 }