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