public function test_is_secure() { $response = new HttpResponse(); $this->assertFalse($response->isSecure()); $response->setProtocol(HttpProtocol::HTTPS); $this->assertTrue($response->isSecure()); }