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

testHttpRequestInputGet() public method

Tests GET functions
Since: 2014-10-04
Author: Nikolaos Dimopoulos ([email protected])
    public function testHttpRequestInputGet()
    {
        $this->specify("hasQuery for empty element returns incorrect results", function () {
            $this->hasEmpty('hasQuery');
        });
        $this->specify("hasQuery for set element returns incorrect results", function () {
            $this->hasNotEmpty('hasQuery', 'setGetVar');
        });
        $this->specify("getQuery for empty element returns incorrect results", function () {
            $this->getEmpty('getQuery');
        });
        $this->specify("getQuery returns incorrect results", function () {
            $this->getNotEmpty('getQuery', 'setGetVar');
        });
        $this->specify("getQuery does not return sanitized data", function () {
            $this->getSanitized('getQuery', 'setGetVar');
        });
        $this->specify("getQuery with array as filter does not return sanitized data", function () {
            $this->getSanitizedArrayFilter('getQuery', ['string'], 'setGetVar');
        });
    }