浏览代码

Adapt var_dump test new php versions.

Newer versions of PHP in 5.4 and 5.5 line add micro seconds
precision to datetime representations.
This adds a regular expression to ignore the .000000 suffix.
Stefan Siegl 10 年之前
父节点
当前提交
edb4679223
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tests/var_dump.phpt

+ 2 - 2
tests/var_dump.phpt

@@ -88,7 +88,7 @@ array(11) {
   ["date"]=>
   object(DateTime)#%d (3) {
     ["date"]=>
-    string(19) "1976-09-27 09:00:00"
+    string(%d) "1976-09-27 09:00:00%r(\.0+)?%r"
     ["timezone_type"]=>
     int(3)
     ["timezone"]=>
@@ -199,7 +199,7 @@ array (11) {
         function () { [native code] }
     }
     ["$date"] =>
-    string(19) "1976-09-27 09:00:00"
+    string(%d) "1976-09-27 09:00:00%r(\.0+)?%r"
     ["$timezone_type"] =>
     int(3)
     ["$timezone"] =>