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