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

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

Tests REQUEST functions
С версии: 2014-10-04
Автор: Nikolaos Dimopoulos ([email protected])
    public function testHttpRequestInputRequest()
    {
        $this->specify("has for empty element returns incorrect results", function () {
            $this->hasEmpty('has');
        });
        $this->specify("has for set element returns incorrect results", function () {
            $this->hasNotEmpty('has', 'setRequestVar');
        });
        $this->specify("get for empty element returns incorrect results", function () {
            $this->getEmpty('get');
        });
        $this->specify("get returns incorrect results", function () {
            $this->getNotEmpty('get', 'setRequestVar');
        });
        $this->specify("get does not return sanitized data", function () {
            $this->getSanitized('get', 'setRequestVar');
        });
        $this->specify("get with array as filter does not return sanitized data", function () {
            $this->getSanitizedArrayFilter('get', ['string'], 'setRequestVar');
        });
    }