setSelfHost() public static method

public static setSelfHost ( $host )
$host string The host to use when constructing URLs
Example #1
0
 /**
  * @covers OneLogin_Saml2_Utils::setSelfHost
  */
 public function testSetselfhost()
 {
     $_SERVER['HTTP_HOST'] = 'example.org';
     $this->assertEquals('example.org', OneLogin_Saml2_Utils::getSelfHost());
     OneLogin_Saml2_Utils::setSelfHost('example.com');
     $this->assertEquals('example.com', OneLogin_Saml2_Utils::getSelfHost());
 }