1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-11-30 04:19:49 +01:00

Add tests

This commit is contained in:
Daniil Gentili 2020-11-27 16:35:27 +01:00
parent 87bfb48247
commit 1b39d8316a
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -26,14 +26,15 @@ true as bool,
'2013-01-01 01:01:01 UTC'::timestamptz as timestamptz, '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[box(point(1,2),point(2,3)),box(point(4,5),point(5,6))] as boxarray,
array[]::text[] as emptyarray array[]::text[] as emptyarray,
'lol'::bytea as bytea
"); ");
var_dump($r->fetchRow(pq\Result::FETCH_ASSOC)); var_dump($r->fetchRow(pq\Result::FETCH_ASSOC));
?> ?>
DONE DONE
--EXPECTF-- --EXPECTF--
Test Test
array(13) { array(14) {
["null"]=> ["null"]=>
NULL NULL
["bool"]=> ["bool"]=>
@ -121,5 +122,7 @@ array(13) {
["emptyarray"]=> ["emptyarray"]=>
array(0) { array(0) {
} }
["bytea"]=>
string(3) "lol"
} }
DONE DONE