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

testCompileMapAscii() public method

public testCompileMapAscii ( )
    public function testCompileMapAscii()
    {
        $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 = 41'));
        $this->assertSame('Aöü', $this->applyTransformations($rules, 'äöü'));
    }