From: Magnus M��tt� Date: Wed, 9 Mar 2005 21:02:31 +0000 (+0000) Subject: More tests. X-Git-Tag: php-5.0.1b1~876 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08444461761fbaa49a8bd537d410f863e6912d52;p=php More tests. --- diff --git a/ext/pdo_pgsql/tests/pdo_020.phpt b/ext/pdo_pgsql/tests/pdo_020.phpt new file mode 100755 index 0000000000..ae5a6a0ef3 --- /dev/null +++ b/ext/pdo_pgsql/tests/pdo_020.phpt @@ -0,0 +1,21 @@ +--TEST-- +PDO_PGSQL: PDOStatement::columnCount +--SKIPIF-- + +--FILE-- + +===DONE=== + +--EXPECT-- +Counted 2 columns after select1. +Counted 3 columns after select2. +Counted 1 columns after select3. +===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_021.phpt b/ext/pdo_pgsql/tests/pdo_021.phpt new file mode 100755 index 0000000000..46f2302ee8 --- /dev/null +++ b/ext/pdo_pgsql/tests/pdo_021.phpt @@ -0,0 +1,20 @@ +--TEST-- +PDO_PGSQL: PDOStatement::execute with parameter markers. +--SKIPIF-- + +--FILE-- + +===DONE=== + +--EXPECT-- +There are 6 rows in the table. +There are 12 rows in the table. +===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_022.phpt b/ext/pdo_pgsql/tests/pdo_022.phpt new file mode 100755 index 0000000000..cd4d931c90 --- /dev/null +++ b/ext/pdo_pgsql/tests/pdo_022.phpt @@ -0,0 +1,74 @@ +--TEST-- +PDO_PGSQL: PDOStatement::getColumnMeta +--SKIPIF-- + +--FILE-- + +===DONE=== + +--EXPECT-- +array(6) { + ["pgsql:oid"]=> + int(23) + ["native_type"]=> + string(4) "int4" + ["name"]=> + string(2) "id" + ["len"]=> + int(4) + ["precision"]=> + int(-1) + ["pdo_type"]=> + int(1) +} +array(6) { + ["pgsql:oid"]=> + int(1043) + ["native_type"]=> + string(7) "varchar" + ["name"]=> + string(3) "val" + ["len"]=> + int(-1) + ["precision"]=> + int(14) + ["pdo_type"]=> + int(2) +} +array(6) { + ["pgsql:oid"]=> + int(1043) + ["native_type"]=> + string(7) "varchar" + ["name"]=> + string(4) "val2" + ["len"]=> + int(-1) + ["precision"]=> + int(20) + ["pdo_type"]=> + int(2) +} +array(6) { + ["pgsql:oid"]=> + int(20) + ["native_type"]=> + string(4) "int8" + ["name"]=> + string(5) "count" + ["len"]=> + int(8) + ["precision"]=> + int(-1) + ["pdo_type"]=> + int(2) +} +===DONE===