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()); }