Ejemplo n.º 1
0
 public function testProtocolDetect()
 {
     /*//
     	test https detection.
     	//*/
     $router = new Nether\Avenue\Router(static::$RequestData['Test']);
     (new Verify('check that GetProtocol() thinks its on HTTP right now.', $router->GetProtocol()))->equals('http');
     $_SERVER['HTTPS'] = true;
     (new Verify('check that GetProtocol() thinks its on HTTPS right now.', $router->GetProtocol()))->equals('https');
     return;
 }