summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/tests/pdo_001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pdo_pgsql/tests/pdo_001.phpt')
-rwxr-xr-xext/pdo_pgsql/tests/pdo_001.phpt41
1 files changed, 41 insertions, 0 deletions
diff --git a/ext/pdo_pgsql/tests/pdo_001.phpt b/ext/pdo_pgsql/tests/pdo_001.phpt
new file mode 100755
index 0000000000..67ff5b1086
--- /dev/null
+++ b/ext/pdo_pgsql/tests/pdo_001.phpt
@@ -0,0 +1,41 @@
+--TEST--
+PDO_PGSQL: PDO_FETCH_ASSOC
+--SKIPIF--
+<?php # vim:ft=php
+require_once('skipif.inc'); ?>
+--FILE--
+<?php
+
+require_once('connection.inc');
+require_once('prepare.inc');
+
+require_once($PDO_TESTS . 'pdo_001.inc');
+
+?>
+===DONE===
+<?php exit(0); ?>
+--EXPECT--
+array(3) {
+ [0]=>
+ array(2) {
+ ["id"]=>
+ int(1)
+ ["val"]=>
+ string(1) "A"
+ }
+ [1]=>
+ array(2) {
+ ["id"]=>
+ int(2)
+ ["val"]=>
+ string(1) "B"
+ }
+ [2]=>
+ array(2) {
+ ["id"]=>
+ int(3)
+ ["val"]=>
+ string(1) "C"
+ }
+}
+===DONE===