Phalcon\Test\Unit\EscaperTest::testGetSetEncoding PHP Method

testGetSetEncoding() public method

Tests the getEncoding and setEncoding
Since: 2014-09-16
Author: Nikolaos Dimopoulos ([email protected])
public testGetSetEncoding ( )
    public function testGetSetEncoding()
    {
        $this->specify('The escaper does not set/get the encoding correctly', function () {
            $escaper = new Escaper();
            $escaper->setEncoding('UTF-8');
            expect($escaper->getEncoding())->equals('UTF-8');
        });
    }