Esempio n. 1
0
 function testGetUrlWithHttpsAndCustomPort()
 {
     $req = new Request();
     $req->mock(array("HTTP_HOST" => "wilson.com", "SERVER_NAME" => "wilson_server", "SERVER_PORT" => 444, "HTTPS" => "on"));
     $this->assertEquals("https://wilson.com:444", $req->getUrl());
 }