소스 검색

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"] =>