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