cvs: php-src /ext/date/tests 009.phpt
| From: | Hannes Magnusson | Date: | Thu, 29 Jun 2006 15:01:20 +0000 |
| Subject: | cvs: php-src /ext/date/tests 009.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-38991@lists.php.net to get a copy of this message | ||
bjori Thu Jun 29 15:01:20 2006 UTC
Modified files:
/php-src/ext/date/tests 009.phpt
Log:
fix/improve test
http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/009.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/date/tests/009.phpt
diff -u php-src/ext/date/tests/009.phpt:1.1 php-src/ext/date/tests/009.phpt:1.2
--- php-src/ext/date/tests/009.phpt:1.1 Tue Jun 27 15:54:36 2006
+++ php-src/ext/date/tests/009.phpt Thu Jun 29 15:01:20 2006
@@ -11,6 +11,7 @@
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("%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)
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)
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)
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)
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