--TEST-- Test glob() function: error conditions --FILE-- expected echo "\n-- Testing glob() with invalid arguments --\n"; var_dump( glob(dirname(__FILE__)."/glob_error/wonder12345", '') ); var_dump( glob(dirname(__FILE__)."/glob_error/wonder12345", "string") ); echo "Done\n"; ?> --CLEAN-- --EXPECTF-- *** Testing glob() : error conditions *** -- Testing glob() with unexpected no. of arguments -- Warning: glob() expects at least 1 parameter, 0 given in %s on line %d NULL Warning: glob() expects at most 2 parameters, 3 given in %s on line %d NULL -- Testing glob() with invalid arguments -- Warning: glob() expects parameter 2 to be long, string given in %s on line %d NULL Warning: glob() expects parameter 2 to be long, string given in %s on line %d NULL Done