Phalcon\Test\Unit\Tag\TagFriendlyTitleTest::testFriendlyTitleWithAccentedCharactersAndReplaceString PHP Method

testFriendlyTitleWithAccentedCharactersAndReplaceString() public method

Tests friendlyTitle with accented characters and replace string
Since: 2014-09-11
Author: Nikolaos Dimopoulos ([email protected])
    public function testFriendlyTitleWithAccentedCharactersAndReplaceString()
    {
        $this->specify("friendlyTitle with accented characters and replace string returns incorrect text", function () {
            Tag::resetInput();
            $options = "Perché l'erba è verde?";
            $expected = 'perche-l-erba-e-verde';
            $actual = Tag::friendlyTitle($options, "-", true, "'");
            expect($actual)->equals($expected);
        });
    }