1--TEST-- 2Test mb_regex_encoding() function : basic functionality 3--SKIPIF-- 4<?php 5extension_loaded('mbstring') or die('skip'); 6function_exists('mb_regex_encoding') or die("skip mb_regex_encoding() is not available in this build"); 7?> 8--FILE-- 9<?php 10/* 11 * Test Basic functionality of mb_regex_encoding 12 */ 13 14echo "*** Testing mb_regex_encoding() : basic functionality ***\n"; 15 16var_dump(mb_regex_encoding()); 17 18var_dump(mb_regex_encoding('UTF-8')); 19 20var_dump(mb_regex_encoding()); 21 22 23echo "Done"; 24?> 25--EXPECTF-- 26*** Testing mb_regex_encoding() : basic functionality *** 27string(%d) "%s" 28bool(true) 29string(5) "UTF-8" 30Done 31