1--TEST-- 2mb_language() 3--SKIPIF-- 4<?php extension_loaded('mbstring') or die('skip'); 5--INI-- 6mbstring.language= 7--FILE-- 8<?php 9echo "Checking default language:\n"; 10var_dump(mb_language()); 11 12echo "Checking default language after ini_set:\n"; 13ini_set('mbstring.language', 'uni'); 14var_dump(mb_language()); 15 16echo "Changing language to English should be successful:\n"; 17var_dump(mb_language('English')); 18 19echo "Confirm language was changed:\n"; 20var_dump(mb_language()); 21 22echo "Try changing to a non-existent language:\n"; 23var_dump(mb_language('Pig Latin')); 24var_dump(mb_language()); 25?> 26--EXPECTF-- 27Checking default language: 28string(7) "neutral" 29Checking default language after ini_set: 30string(3) "uni" 31Changing language to English should be successful: 32bool(true) 33Confirm language was changed: 34string(7) "English" 35Try changing to a non-existent language: 36 37Warning: mb_language(): Unknown language "Pig Latin" in %s on line %d 38bool(false) 39string(7) "neutral" 40