Lines Matching refs:date_parse
2 Test date_parse() function : error conditions
5 /* Prototype : array date_parse ( string $date )
13 echo "*** Testing date_parse() : error conditions ***\n";
15 echo "\n-- Testing date_parse() function with zero arguments --\n";
16 var_dump( date_parse() );
18 echo "\n-- Testing date_parse() function with more than expected no. of arguments --\n";
21 var_dump( date_parse($date, $extra_arg) );
23 echo "\n-- Testing date_parse() function with unexpected characters in \$date argument --\n";
25 var_dump( date_parse($invalid_date) );
30 *** Testing date_parse() : error conditions ***
32 -- Testing date_parse() function with zero arguments --
34 Warning: date_parse() expects exactly 1 parameter, 0 given in %s on line %d
37 -- Testing date_parse() function with more than expected no. of arguments --
39 Warning: date_parse() expects exactly 1 parameter, 2 given in %s on line %d
42 -- Testing date_parse() function with unexpected characters in $date argument --