X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Ftypes002.phpt;h=7122cf1e3891a5bce26fcb1a1a6df75b0ea3d4b0;hp=431ee3e1408734a74f688c0c06bb53d08b8a71be;hb=d3fbce1b02b41d7ee1f3d0b60dc8df411aae7d79;hpb=eb78fe8db7aa132c54e3b092973d6ad01210791c;ds=sidebyside diff --git a/tests/types002.phpt b/tests/types002.phpt index 431ee3e..7122cf1 100644 --- a/tests/types002.phpt +++ b/tests/types002.phpt @@ -25,14 +25,15 @@ true as bool, 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 "); var_dump($r->fetchRow(pq\Result::FETCH_ASSOC)); ?> DONE --EXPECTF-- Test -array(12) { +array(13) { ["null"]=> NULL ["bool"]=> @@ -121,5 +122,12 @@ array(12) { NULL } } + ["boxarray"]=> + array(2) { + [0]=> + string(11) "(2,3),(1,2)" + [1]=> + string(11) "(5,6),(4,5)" + } } DONE \ No newline at end of file