eZ\Publish\Core\Persistence\Tests\TransformationProcessor\TransformationProcessorPcreCompilerTest::testCompileMapUnicode PHP Method

testCompileMapUnicode() public method

    public function testCompileMapUnicode()
    {
        $parser = new Persistence\TransformationProcessor\DefinitionBased\Parser(self::getInstallationDir());
        $compiler = new Persistence\TransformationProcessor\PcreCompiler(new Persistence\Utf8Converter());
        $rules = $compiler->compile($parser->parseString("map_test:\n" . 'U+00e4 = U+00e5'));
        $this->assertSame('åöü', $this->applyTransformations($rules, 'äöü'));
    }