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

testFriendlyTitleWithAccentedCharactersAndReplaceArray() public method

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