Lines Matching refs:scandir
2 Test scandir() function : error conditions - Incorrect number of args
5 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
11 * Pass incorrect number of arguments to scandir() to test behaviour
14 echo "*** Testing scandir() : error conditions ***\n";
17 echo "\n-- Testing scandir() function with Zero arguments --\n";
18 var_dump( scandir() );
20 //Test scandir with one more than the expected number of arguments
21 echo "\n-- Testing scandir() function with more than expected no. of arguments --\n";
27 var_dump( scandir($dir, $sorting_order, $context, $extra_arg) );
36 *** Testing scandir() : error conditions ***
38 -- Testing scandir() function with Zero arguments --
40 Warning: scandir() expects at least 1 parameter, 0 given in %s on line %d
43 -- Testing scandir() function with more than expected no. of arguments --
45 Warning: scandir() expects at most 3 parameters, 4 given in %s on line %d