Lines Matching refs:setDate
2 Test DateTime::setDate() function : error conditions
5 /* Prototype : public DateTime DateTime::setDate ( int $year , int $month , int $day )
13 echo "*** Testing DateTime::setDate() : error conditions ***\n";
17 echo "\n-- Testing DateTime::setDate() function with zero arguments --\n";
18 var_dump( $datetime->setDate() );
20 echo "\n-- Testing DateTime::setDate() function with less than expected no. of arguments --\n";
24 var_dump( $datetime->setDate($year) );
25 var_dump( $datetime->setDate($year, $month) );
27 echo "\n-- Testing DateTime::setDate() function with more than expected no. of arguments --\n";
29 var_dump( $datetime->setDate($year, $month, $day, $extra_arg) );
34 *** Testing DateTime::setDate() : error conditions ***
36 -- Testing DateTime::setDate() function with zero arguments --
38 Warning: DateTime::setDate() expects exactly 3 parameters, 0 given in %s on line %d
41 -- Testing DateTime::setDate() function with less than expected no. of arguments --
43 Warning: DateTime::setDate() expects exactly 3 parameters, 1 given in %s on line %d
46 Warning: DateTime::setDate() expects exactly 3 parameters, 2 given in %s on line %d
49 -- Testing DateTime::setDate() function with more than expected no. of arguments --
51 Warning: DateTime::setDate() expects exactly 3 parameters, 4 given in %s on line %d