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

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

Tests the escapeUrl
С версии: 2014-09-16
Автор: Nikolaos Dimopoulos ([email protected])
public testEscapeUrl ( )
    public function testEscapeUrl()
    {
        $this->specify('The escaper with escapeCss does not return the correct result ', function () {
            $escaper = new Escaper();
            expect($escaper->escapeUrl("http://phalconphp.com/a.php?c=d&e=f"))->equals('http%3A%2F%2Fphalconphp.com%2Fa.php%3Fc%3Dd%26e%3Df');
        });
    }