X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Ftypes002.phpt;h=9d36788706311b8a414e5d3f8de8b2fca0288071;hb=13b06e992c066b4cf1f381273b4f5f5e15764293;hp=e6e6e70de70288fc83c1b288eff705fb8ec4ae39;hpb=c48a4a7f5d82452d7d5ceac38e04c7893486f4f9;p=m6w6%2Fext-pq diff --git a/tests/types002.phpt b/tests/types002.phpt index e6e6e70..9d36788 100644 --- a/tests/types002.phpt +++ b/tests/types002.phpt @@ -3,9 +3,6 @@ extended type support --SKIPIF-- --INI-- date.timezone=UTC @@ -25,17 +22,18 @@ true as bool, 1.1::float4 as float4, 2.2::float8 as float8, '2013-01-01'::date as date, -1::abstime as abstime, '2013-01-01 01:01:01'::timestamp as timestamp, '2013-01-01 01:01:01 UTC'::timestamptz as timestamptz, -array[array[1,2,3],array[4,5,6],array[NULL::int,NULL::int,NULL::int]] as intarray +array[array[1,2,3],array[4,5,6],array[NULL::int,NULL::int,NULL::int]] as intarray, +array[box(point(1,2),point(2,3)),box(point(4,5),point(5,6))] as boxarray, +array[]::text[] as emptyarray "); var_dump($r->fetchRow(pq\Result::FETCH_ASSOC)); ?> DONE --EXPECTF-- Test -array(12) { +array(13) { ["null"]=> NULL ["bool"]=> @@ -61,17 +59,6 @@ array(12) { ["timezone"]=> string(3) "UTC" } - ["abstime"]=> - object(pq\DateTime)#%d (4) { - ["format"]=> - string(11) "Y-m-d H:i:s" - ["date"]=> - string(%d) "1970-01-01 00:00:01%r(\.000000)?%r" - ["timezone_type"]=> - int(1) - ["timezone"]=> - string(6) "+00:00" - } ["timestamp"]=> object(pq\DateTime)#%d (4) { ["format"]=> @@ -124,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