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

testCompileMapRemove() public method

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