Phalcon\Test\Unit\EscaperTest::testEscaperHtml PHP Метод

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

Tests whether a key exists in the array
С версии: 2014-09-12
Автор: Nikolaos Dimopoulos ([email protected])
public testEscaperHtml ( )
    public function testEscaperHtml()
    {
        $this->specify("The escaper does not escape string correctly", function () {
            $escaper = new Escaper();
            expect($escaper->escapeHtml("<h1></h1>"))->equals('&lt;h1&gt;&lt;/h1&gt;');
        });
    }