Annotation of embedaddon/php/ext/standard/tests/strings/convert_cyr_string.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: basic convert_cyr_string() tests
3: --FILE--
4: <?php
5:
6: var_dump(convert_cyr_string());
7: var_dump(convert_cyr_string(""));
8: var_dump(convert_cyr_string("", ""));
9: var_dump(convert_cyr_string("", "", ""));
10: var_dump(convert_cyr_string(array(), array(), array()));
11:
12: var_dump(convert_cyr_string((binary)"[[[[[[", "q", "m"));
13: var_dump(convert_cyr_string((binary)"[[[[[[", "k", "w"));
14: var_dump(convert_cyr_string((binary)"[[[[[[", "m", "a"));
15: var_dump(convert_cyr_string((binary)"[[[[[[", "d", "i"));
16: var_dump(convert_cyr_string((binary)"[[[[[[", "w", "k"));
17: var_dump(convert_cyr_string((binary)"[[[[[[", "i", "q"));
18: var_dump(convert_cyr_string((binary)"", "d", "i"));
19:
20: echo "Done\n";
21: ?>
22: --EXPECTF--
23: Warning: convert_cyr_string() expects exactly 3 parameters, 0 given in %s on line %d
24: NULL
25:
26: Warning: convert_cyr_string() expects exactly 3 parameters, 1 given in %s on line %d
27: NULL
28:
29: Warning: convert_cyr_string() expects exactly 3 parameters, 2 given in %s on line %d
30: NULL
31:
32: Warning: convert_cyr_string(): Unknown source charset: in %s on line %d
33:
34: Warning: convert_cyr_string(): Unknown destination charset: in %s on line %d
35: string(0) ""
36:
37: Warning: convert_cyr_string() expects parameter 1 to be string, array given in %s on line %d
38: NULL
39:
40: Warning: convert_cyr_string(): Unknown source charset: q in %s on line %d
41: string(6) "[[[[[["
42: string(6) "[[[[[["
43: string(6) "[[[[[["
44: string(6) "[[[[[["
45: string(6) "[[[[[["
46:
47: Warning: convert_cyr_string(): Unknown destination charset: q in %s on line %d
48: string(6) "[[[[[["
49: string(0) ""
50: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>