Annotation of embedaddon/php/ext/mbstring/tests/mb_convert_kana.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Testing mb_convert_kana() function
! 3: --SKIPIF--
! 4: <?php
! 5: if (!extension_loaded('mbstring')) die('skip mbstring not enabled');
! 6: if (!function_exists("mb_convert_kana")) print "skip mb_convert_kana() not available";
! 7: ?>
! 8: --FILE--
! 9: <?php
! 10: $zenKakuA = 'ァアィイゥウェエォオカガキギク';
! 11: $zenKakuB = 'グケゲコゴサザシジスズセゼソゾタ';
! 12: $zenKakuC = 'ダチヂッツヅテデトドナニヌネノハ';
! 13: $zenKakuD = 'バパヒビピフブプヘベペホボポマミ';
! 14: $zenKakuE = 'ムメモャヤュユョヨラリルレロヮワ';
! 15: $zenKakuF = 'ヰヱヲンヴヵヶヷヸヹヺ・ーヽヾ';
! 16:
! 17: $hanKakuA = '⦆。「」、・ヲァィゥェォャュョッ';
! 18: $hanKakuB = 'ーアイウエオカキクケコサシスセソ';
! 19: $hanKakuC = 'タチツテトナニヌネノハヒフヘホマ';
! 20: $hanKakuD = 'ミムメモヤユヨラリルレロワン゙゚';
! 21:
! 22:
! 23: echo $zenKakuA . ' => ' . mb_convert_kana($zenKakuA, 'AZKH', 'utf-8');
! 24: echo "\n";
! 25: echo $zenKakuB . ' => ' . mb_convert_kana($zenKakuB, 'azkh', 'utf-8');
! 26: echo "\n";
! 27: echo $zenKakuC . ' => ' . mb_convert_kana($zenKakuC, 'azkh', 'utf-8');
! 28: echo "\n";
! 29: echo $zenKakuD . ' => ' . mb_convert_kana($zenKakuD, 'azkh', 'utf-8');
! 30: echo "\n";
! 31: echo $zenKakuE . ' => ' . mb_convert_kana($zenKakuE, 'azkh', 'utf-8');
! 32: echo "\n";
! 33: echo $zenKakuF . ' => ' . mb_convert_kana($zenKakuF, 'azkh', 'utf-8');
! 34: echo "\n";
! 35: echo "\n";
! 36: echo $hanKakuA . ' => ' . mb_convert_kana($hanKakuA, 'AZKH', 'utf-8');
! 37: echo "\n";
! 38: echo $hanKakuB . ' => ' . mb_convert_kana($hanKakuB, 'AZKH', 'utf-8');
! 39: echo "\n";
! 40: echo $hanKakuC . ' => ' . mb_convert_kana($hanKakuC, 'AZKH', 'utf-8');
! 41: echo "\n";
! 42: echo $hanKakuD . ' => ' . mb_convert_kana($hanKakuD, 'AZKH', 'utf-8');
! 43: ?>
! 44: --EXPECT--
! 45: ァアィイゥウェエォオカガキギク => ァアィイゥウェエォオカガキギク
! 46: グケゲコゴサザシジスズセゼソゾタ => グケゲコゴサザシジスズセゼソゾタ
! 47: ダチヂッツヅテデトドナニヌネノハ => ダチヂッツヅテデトドナニヌネノハ
! 48: バパヒビピフブプヘベペホボポマミ => バパヒビピフブプヘベペホボポマミ
! 49: ムメモャヤュユョヨラリルレロヮワ => ムメモャヤュユョヨラリルレロワワ
! 50: ヰヱヲンヴヵヶヷヸヹヺ・ーヽヾ => イエヲンヴヵヶヷヸヹヺ・ーヽヾ
! 51:
! 52: ⦆。「」、・ヲァィゥェォャュョッ => ⦆。「」、・ヲァィゥェォャュョッ
! 53: ーアイウエオカキクケコサシスセソ => ーアイウエオカキクケコサシスセソ
! 54: タチツテトナニヌネノハヒフヘホマ => タチツテトナニヌネノハヒフヘホマ
! 55: ミムメモヤユヨラリルレロワン゙゚ => ミムメモヤユヨラリルレロワン゛゜
! 56:
! 57: --CREDITS--
! 58: Jason Easter <easter@phpug-wuerzburg.de>
! 59: PHPUG Würzburg <phpug-wuerzburg.de>
! 60: Testfest 2009 2009-06-20
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>