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