Phalcon\Test\Unit\EscaperTest::testEscapeUrl PHP Méthode

testEscapeUrl() public méthode

Tests the escapeUrl
Since: 2014-09-16
Author: 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');
        });
    }