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