1--TEST--
2Transliterator::createFromRules (basic)
3--SKIPIF--
4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8
9$rules = <<<RULES
10α <> y;
11\`\` } a > “;
12RULES;
13
14$t = Transliterator::createFromRules($rules);
15echo $t->id,"\n";
16
17echo $t->transliterate("``akk ``bkk ``aooy"),"\n";
18
19$u = transliterator_create_from_rules($rules, Transliterator::REVERSE);
20
21echo $u->transliterate("``akk ``bkk ``aooy"), "\n";
22
23echo "Done.\n";
24--EXPECT--
25RulesTransPHP
26“akk ``bkk “aooy
27``akk ``bkk ``aooα
28Done.
29