Lines Matching refs:DateTime
2 Test DateTime::setDate() function : error conditions
5 /* Prototype : public DateTime DateTime::setDate ( int $year , int $month , int $day )
6 * Description: Resets the current date of the DateTime object to a different date.
13 echo "*** Testing DateTime::setDate() : error conditions ***\n";
15 $datetime = new DateTime("2009-01-30 19:34:10");
17 echo "\n-- Testing DateTime::setDate() function with zero arguments --\n";
20 echo "\n-- Testing DateTime::setDate() function with less than expected no. of arguments --\n";
27 echo "\n-- Testing DateTime::setDate() function with more than expected no. of arguments --\n";
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