Lines Matching refs:mb_strpos
2 Test mb_strpos() function : error conditions - Pass incorrect number of args
6 function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build");
10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]])
16 * Test how mb_strpos behaves when passed an incorrect number of arguments
19 echo "*** Testing mb_strpos() : error conditions ***\n";
22 //Test mb_strpos with one more than the expected number of arguments
23 echo "\n-- Testing mb_strpos() function with more than expected no. of arguments --\n";
29 var_dump( mb_strpos($haystack, $needle, $offset, $encoding, $extra_arg) );
31 // Testing mb_strpos with one less than the expected number of arguments
32 echo "\n-- Testing mb_strpos() function with less than expected no. of arguments --\n";
34 var_dump( mb_strpos($haystack) );
39 *** Testing mb_strpos() : error conditions ***
41 -- Testing mb_strpos() function with more than expected no. of arguments --
43 Warning: mb_strpos() expects at most 4 parameters, 5 given in %s on line %d
46 -- Testing mb_strpos() function with less than expected no. of arguments --
48 Warning: mb_strpos() expects at least 2 parameters, 1 given in %s on line %d