--TEST-- Test is_dir() function: error conditions --FILE-- expected no.of args /* Non-existing dir */ var_dump( is_dir("/no/such/dir") ); echo "*** Done ***"; ?> --CLEAN-- --EXPECTF-- *** Testing is_dir() error conditions *** Warning: is_dir() expects exactly 1 parameter, 0 given in %s on line %d NULL Warning: is_dir() expects exactly 1 parameter, 2 given in %s on line %d NULL bool(false) *** Done ***