Annotation of embedaddon/php/ext/intl/tests/transliterator_clone.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Transliterator clone handler
! 3: --SKIPIF--
! 4: <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
! 5: --FILE--
! 6: <?php
! 7: ini_set("intl.error_level", E_WARNING);
! 8: $str = "a U+4E07";
! 9:
! 10: $t = Transliterator::create("hex-any");
! 11: echo $t->id, ": ", $t->transliterate($str), "\n";
! 12:
! 13: $u = clone $t;
! 14: echo $u->id, ": ", $u->transliterate($str), "\n";
! 15:
! 16: echo "Done.\n";
! 17:
! 18: --EXPECT--
! 19: hex-any: a 万
! 20: hex-any: a 万
! 21: Done.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>