Annotation of embedaddon/php/ext/mbstring/tests/mb_encoding_aliases.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: mb_encoding_aliases()
3: --SKIPIF--
4: <?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
5: --FILE--
6: <?php
7: mb_encoding_aliases();
8: $list = mb_encoding_aliases("ASCII");
9: sort($list);
10: var_dump($list);
11: var_dump(mb_encoding_aliases("7bit"));
12: var_dump(mb_encoding_aliases("8bit"));
13: ?>
14: --EXPECTF--
15: Warning: mb_encoding_aliases() expects exactly 1 parameter, 0 given in %s on line 2
16: array(10) {
17: [0]=>
18: string(14) "ANSI_X3.4-1968"
19: [1]=>
20: string(14) "ANSI_X3.4-1986"
21: [2]=>
22: string(6) "IBM367"
23: [3]=>
24: string(9) "ISO646-US"
25: [4]=>
26: string(16) "ISO_646.irv:1991"
27: [5]=>
28: string(8) "US-ASCII"
29: [6]=>
30: string(5) "cp367"
31: [7]=>
32: string(7) "csASCII"
33: [8]=>
34: string(8) "iso-ir-6"
35: [9]=>
36: string(2) "us"
37: }
38: array(0) {
39: }
40: array(1) {
41: [0]=>
42: string(6) "binary"
43: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>