コード例 #1
0
ファイル: RequestTest.php プロジェクト: roydejong/Enlighten
 public function testIsHttpsForOffIIS()
 {
     // when using ISAPI with IIS, the value will be off if the request was not made through the HTTPS protocol.
     $request = new Request();
     $request->setEnvironmentData(['HTTPS' => 'off']);
     $this->assertFalse($request->isHttps());
     $this->assertEquals('http', $request->getProtocol());
 }