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

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

Tests the escapeCss
С версии: 2014-09-16
Автор: Nikolaos Dimopoulos ([email protected])
public testEscapeCss ( )
    public function testEscapeCss()
    {
        $this->specify('The escaper with escapeCss does not return the correct result ', function () {
            $escaper = new Escaper();
            $source = ".émotion { background: " . "url('http://phalconphp.com/a.php?c=d&e=f'); }";
            $expected = '\\2e \\e9 motion\\20 \\7b \\20 background\\3a \\20 url\\28 ' . '\\27 http\\3a \\2f \\2f phalconphp\\2e com\\2f a\\2e php' . '\\3f c\\3d d\\26 e\\3d f\\27 \\29 \\3b \\20 \\7d ';
            expect($escaper->escapeCss($source))->equals($expected);
        });
    }