Phalcon\Test\Unit\Tag\TagResetInputTest::testResetInput PHP 메소드

testResetInput() 공개 메소드

Note: The Tag::resetInput should not clear $_POST data.
부터: 2016-01-20
저자: Serghei Iakovlev ([email protected])
public testResetInput ( )
    public function testResetInput()
    {
        $this->specify('The resetInput does not work as expected', function () {
            $_POST = ['a' => '1', 'b' => '2'];
            Tag::resetInput();
            expect($_POST)->equals(['a' => '1', 'b' => '2']);
        });
    }