fix/improve test

This commit is contained in:
Hannes Magnusson 2006-06-29 15:01:20 +00:00
parent d03ba9cdc5
commit a880059e5a

View File

@ -11,6 +11,7 @@ var_dump(strftime());
var_dump(strftime(""));
var_dump(strftime("%a %A %b %B %c %C %d %D %e %g %G %h %H %I %j %m %M %n %p %r %R %S %t %T %u %U %V %W %w %x %X %y %Y %Z %z %%", $t));
var_dump(strftime("%%q %%a", $t));
var_dump(strftime("%q", $t));
var_dump(strftime("blah", $t));
@ -18,6 +19,7 @@ var_dump(gmstrftime());
var_dump(gmstrftime(""));
var_dump(gmstrftime("%a %A %b %B %c %C %d %D %e %g %G %h %H %I %j %m %M %n %p %r %R %S %t %T %u %U %V %W %w %x %X %y %Y %Z %z %%", $t));
var_dump(gmstrftime("%%q %%a", $t));
var_dump(gmstrftime("%q", $t));
var_dump(gmstrftime("blah", $t));
@ -29,7 +31,8 @@ bool(false)
bool(false)
string(179) "Tue Tuesday Jun June Tue Jun 27 00:00:00 2006 20 27 06/27/06 27 06 2006 Jun 00 12 178 06 00
AM 12:00:00 AM 00:00 00 00:00:00 2 26 26 26 2 06/27/06 00:00:00 06 2006 IDT +0300 %"
string(2) "%q"
string(5) "%q %a"
string(1) "q"
string(4) "blah"
Warning: gmstrftime() expects at least 1 parameter, 0 given in %s on line %d
@ -37,7 +40,8 @@ bool(false)
bool(false)
string(178) "Mon Monday Jun June Mon Jun 26 21:00:00 2006 20 26 06/26/06 26 06 2006 Jun 21 09 177 06 00
PM 09:00:00 PM 21:00 00 21:00:00 1 26 26 26 1 06/26/06 21:00:00 06 2006 GMT +0000 %"
string(2) "%q"
string(5) "%q %a"
string(1) "q"
string(4) "blah"
Done
--UEXPECTF--
@ -46,7 +50,8 @@ bool(false)
bool(false)
unicode(179) "Tue Tuesday Jun June Tue Jun 27 00:00:00 2006 20 27 06/27/06 27 06 2006 Jun 00 12 178 06 00
AM 12:00:00 AM 00:00 00 00:00:00 2 26 26 26 2 06/27/06 00:00:00 06 2006 IDT +0300 %"
unicode(2) "%q"
unicode(5) "%q %a"
unicode(1) "q"
unicode(4) "blah"
Warning: gmstrftime() expects at least 1 parameter, 0 given in %s on line %d
@ -54,6 +59,7 @@ bool(false)
bool(false)
unicode(178) "Mon Monday Jun June Mon Jun 26 21:00:00 2006 20 26 06/26/06 26 06 2006 Jun 21 09 177 06 00
PM 09:00:00 PM 21:00 00 21:00:00 1 26 26 26 1 06/26/06 21:00:00 06 2006 GMT +0000 %"
unicode(2) "%q"
unicode(5) "%q %a"
unicode(1) "q"
unicode(4) "blah"
Done