php-src/ext/intl/tests/transliterator_create_from_rule_basic.phpt
Nikita Popov 7485978339
Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

29 lines
510 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--TEST--
Transliterator::createFromRules (basic)
--EXTENSIONS--
intl
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
$rules = <<<RULES
α <> y;
\`\` } a > “;
RULES;
$t = Transliterator::createFromRules($rules);
echo $t->id,"\n";
echo $t->transliterate("``akk ``bkk ``aooy"),"\n";
$u = transliterator_create_from_rules($rules, Transliterator::REVERSE);
echo $u->transliterate("``akk ``bkk ``aooy"), "\n";
echo "Done.\n";
?>
--EXPECT--
RulesTransPHP
“akk ``bkk “aooy
``akk ``bkk ``aooα
Done.