0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-09 15:18:41 +00:00

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.
This commit is contained in:
Stefan Siegl 2014-09-21 19:48:25 +00:00
parent ab5b0ae7bf
commit edb4679223

View File

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