Lines Matching refs:mb_strlen
2 Test mb_strlen() function : error conditions - pass incorrect number of args
6 function_exists('mb_strlen') or die("skip mb_strlen() is not available in this build");
10 /* Prototype : int mb_strlen(string $str [, string $encoding])
16 * Pass mb_strlen an incorrect number of arguments to test behaviour
19 echo "*** Testing mb_strlen() : error conditions ***\n";
22 echo "\n-- Testing mb_strlen() function with Zero arguments --\n";
23 var_dump( mb_strlen() );
25 //Test mb_strlen with one more than the expected number of arguments
26 echo "\n-- Testing mb_strlen() function with more than expected no. of arguments --\n";
30 var_dump( mb_strlen($str, $encoding, $extra_arg) );
35 *** Testing mb_strlen() : error conditions ***
37 -- Testing mb_strlen() function with Zero arguments --
39 Warning: mb_strlen() expects at least 1 parameter, 0 given in %s on line %d
42 -- Testing mb_strlen() function with more than expected no. of arguments --
44 Warning: mb_strlen() expects at most 2 parameters, 3 given in %s on line %d