X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fconv001.phpt;h=6e794aa6af7896c122d299b18893553053848176;hb=788f533091f943187a1c5be0334bdd3eb5a3c945;hp=084cb062ad5881204db880dc09bf9cf008845354;hpb=7acdd4b540f114ac8e8103df42633d5f741fb210;p=m6w6%2Fext-pq diff --git a/tests/conv001.phpt b/tests/conv001.phpt index 084cb06..6e794aa 100644 --- a/tests/conv001.phpt +++ b/tests/conv001.phpt @@ -3,6 +3,7 @@ converter --SKIPIF-- --INI-- date.timezone=UTC @@ -69,7 +70,7 @@ class JSONConverter extends Converter } function convertFromString($string, $type) { - return json_decode($string); + return json_decode($string, true); } function convertToString($data, $type) { @@ -208,11 +209,11 @@ array(1) { int(1343423) } [3]=> - object(stdClass)#%d (3) { + array(3) { ["int"]=> int(123) ["obj"]=> - object(stdClass)#%d (3) { + array(3) { ["a"]=> int(1) ["b"]=> @@ -346,7 +347,7 @@ array(1) { string(3) "UTC" } [17]=> - object(pq\DateTime)#159 (4) { + object(pq\DateTime)#%d (4) { ["format"]=> string(14) "Y-m-d H:i:s.uO" ["date"]=>