1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
Files
archived-php-src/ext/intl/tests/transliterator_create_from_rule_basic.phpt
T
Máté Kocsis 7aacc705d0 Add many missing closing PHP tags to tests
Closes GH-5958
2020-08-09 22:03:36 +02:00

30 lines
558 B
PHP
Raw 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)
--SKIPIF--
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
--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.