Phalcon\Test\Unit\Http\RequestTest::testHttpRequestIsSecureRequest PHP Method

testHttpRequestIsSecureRequest() public method

Tests isSecureRequest
Since: 2014-10-04
Author: Nikolaos Dimopoulos ([email protected])
    public function testHttpRequestIsSecureRequest()
    {
        $this->specify("isSecureRequest is not true", function () {
            $request = $this->getRequestObject();
            $this->setServerVar('HTTPS', 'on');
            $actual = $request->isSecureRequest();
            $this->unsetServerVar('HTTPS');
            expect($actual)->true();
        });
    }