Lines Matching refs:date_format
2 Test date_format() function : error conditions
5 /* Prototype : string date_format ( DateTime $object , string $format )
14 echo "*** Testing date_format() : error conditions ***\n";
17 var_dump( date_format() );
22 var_dump( date_format($date) );
27 var_dump( date_format($date, $format, $extra_arg) );
31 var_dump( date_format($invalid_obj, $format) );
33 var_dump( date_format($invalid_obj, $format) );
35 var_dump( date_format($invalid_obj, $format) );
40 *** Testing date_format() : error conditions ***
44 Warning: date_format() expects exactly 2 parameters, 0 given in %s on line %d
49 Warning: date_format() expects exactly 2 parameters, 1 given in %s on line %d
54 Warning: date_format() expects exactly 2 parameters, 3 given in %s on line %d
59 Warning: date_format() expects parameter 1 to be DateTimeInterface, object given in %sp on line %d
62 Warning: date_format() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
65 Warning: date_format() expects parameter 1 to be DateTimeInterface, null given in %s on line %d