Lines Matching refs:setTimezone
2 Test DateTime::setTimezone () function : error conditions
5 /* Prototype : public DateTime DateTime::setTimezone ( DateTimeZone $timezone )
13 echo "*** Testing DateTime::setTimezone () : error conditions ***\n";
17 echo "\n-- Testing DateTime::setTimezone () function with zero arguments --\n";
18 var_dump( $datetime->setTimezone() );
20 echo "\n-- Testing DateTime::setTimezone () function with more than expected no. of arguments --\n";
23 var_dump( $datetime->setTimezone($timezone, $extra_arg) );
28 *** Testing DateTime::setTimezone () : error conditions ***
30 -- Testing DateTime::setTimezone () function with zero arguments --
32 Warning: DateTime::setTimezone() expects exactly 1 parameter, 0 given in %s on line %d
35 -- Testing DateTime::setTimezone () function with more than expected no. of arguments --
37 Warning: DateTime::setTimezone() expects exactly 1 parameter, 2 given in %s on line %d