Phalcon\Test\Unit\Http\RequestTest::testHttpRequestInputGet PHP Метод

testHttpRequestInputGet() публичный Метод

Tests GET functions
С версии: 2014-10-04
Автор: 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');
        });
    }