X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Ftypes002.phpt;h=9d36788706311b8a414e5d3f8de8b2fca0288071;hp=3de4400b091ca234c352d1d565320eb7214e35a1;hb=843fc4cf789fa12ef08e6beefc4653498fe73bfd;hpb=cd5d3cdafda1f9e9fe120c9eaf1269fdc577f04d diff --git a/tests/types002.phpt b/tests/types002.phpt index 3de4400..9d36788 100644 --- a/tests/types002.phpt +++ b/tests/types002.phpt @@ -3,10 +3,9 @@ extended type support --SKIPIF-- +--INI-- +date.timezone=UTC --FILE-- fetchRow(pq\Result::FETCH_ASSOC)); ?> DONE --EXPECTF-- Test -array(12) { +array(13) { ["null"]=> NULL ["bool"]=> @@ -53,29 +53,18 @@ array(12) { ["format"]=> string(5) "Y-m-d" ["date"]=> - string(19) "2013-01-01 00:00:00" + string(%d) "2013-01-01 00:00:00%r(\.000000)?%r" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } - ["abstime"]=> - object(pq\DateTime)#%d (4) { - ["format"]=> - string(11) "Y-m-d H:i:s" - ["date"]=> - string(19) "1970-01-01 00:00:01" - ["timezone_type"]=> - int(1) - ["timezone"]=> - string(6) "+00:00" - } ["timestamp"]=> object(pq\DateTime)#%d (4) { ["format"]=> string(13) "Y-m-d H:i:s.u" ["date"]=> - string(19) "2013-01-01 01:01:01" + string(%d) "2013-01-01 01:01:01%r(\.000000)?%r" ["timezone_type"]=> int(3) ["timezone"]=> @@ -86,7 +75,7 @@ array(12) { ["format"]=> string(14) "Y-m-d H:i:s.uO" ["date"]=> - string(19) "2013-01-01 01:01:01" + string(%d) "2013-01-01 01:01:01%r(\.000000)?%r" ["timezone_type"]=> int(1) ["timezone"]=> @@ -122,5 +111,15 @@ array(12) { NULL } } + ["boxarray"]=> + array(2) { + [0]=> + string(11) "(2,3),(1,2)" + [1]=> + string(11) "(5,6),(4,5)" + } + ["emptyarray"]=> + array(0) { + } } DONE \ No newline at end of file