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