tests
[m6w6/ext-pq] / tests / basic002.phpt
diff --git a/tests/basic002.phpt b/tests/basic002.phpt
new file mode 100644 (file)
index 0000000..ce3b6c9
--- /dev/null
@@ -0,0 +1,22 @@
+--TEST--
+basic functionality
+--SKIPIF--
+<?php include "_skipif.inc"; ?>
+--FILE--
+<?php
+echo "Test\n";
+include "_setup.inc";
+
+$c = new pq\Connection(PQ_DSN);
+$s = $c->prepare("test1", "SELECT \$1",array($c->types->byName->text->oid));
+$r = $s->exec(array("fooo"));
+
+printf("%s\n", $r->errorMessage);
+printf("%s\n", $r->fetchCol());
+?>
+DONE
+--EXPECT--
+Test
+
+fooo
+DONE