derick                                   Sun, 07 Mar 2010 13:47:06 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=295923

Log:
- Change this test case because non-6 digits are supported now, and clarify
  that the "1" doesn't show because the precision isn't high enough. (Same
  happens if you change it to 9).

Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/date/tests/bug45554.phpt
    U   php/php-src/trunk/ext/date/tests/bug45554.phpt

Modified: php/php-src/branches/PHP_5_3/ext/date/tests/bug45554.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/date/tests/bug45554.phpt   2010-03-07 
13:11:44 UTC (rev 295922)
+++ php/php-src/branches/PHP_5_3/ext/date/tests/bug45554.phpt   2010-03-07 
13:47:06 UTC (rev 295923)
@@ -9,12 +9,12 @@
 echo $d->format($format), "\n";

 $d = date_create_from_format($format, "03-15-2005 12:22:29.001001 PST");
-echo $d->format($format), "\n";
+echo $d->format($format), " (precision isn't enough to show the 1 here)\n";

 $d = date_create_from_format($format, "03-15-2005 12:22:29.0010 PST");
-var_dump( $d );
+echo $d->format($format), "\n";
 ?>
 --EXPECT--
 03-15-2005 12:22:29.000000 PST
+03-15-2005 12:22:29.001000 PST (precision isn't enough to show the 1 here)
 03-15-2005 12:22:29.001000 PST
-bool(false)

Modified: php/php-src/trunk/ext/date/tests/bug45554.phpt
===================================================================
--- php/php-src/trunk/ext/date/tests/bug45554.phpt      2010-03-07 13:11:44 UTC 
(rev 295922)
+++ php/php-src/trunk/ext/date/tests/bug45554.phpt      2010-03-07 13:47:06 UTC 
(rev 295923)
@@ -9,12 +9,12 @@
 echo $d->format($format), "\n";

 $d = date_create_from_format($format, "03-15-2005 12:22:29.001001 PST");
-echo $d->format($format), "\n";
+echo $d->format($format), " (precision isn't enough to show the 1 here)\n";

 $d = date_create_from_format($format, "03-15-2005 12:22:29.0010 PST");
-var_dump( $d );
+echo $d->format($format), "\n";
 ?>
 --EXPECT--
 03-15-2005 12:22:29.000000 PST
+03-15-2005 12:22:29.001000 PST (precision isn't enough to show the 1 here)
 03-15-2005 12:22:29.001000 PST
-bool(false)

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to