tests & fixes
[m6w6/ext-pq] / tests / info001.phpt
diff --git a/tests/info001.phpt b/tests/info001.phpt
new file mode 100644 (file)
index 0000000..a16c59c
--- /dev/null
@@ -0,0 +1,23 @@
+--TEST--
+connection info
+--SKIPIF--
+<?php include "_skipif.inc"; ?>
+--FILE--
+<?php
+echo "Test\n";
+include "_setup.inc";
+$c = new pq\Connection(PQ_DSN);
+printf("%s%s%s%s%s%s\n", 
+       $c->db,
+       $c->user,
+       $c->pass,
+       $c->host,
+       $c->port,
+       $c->options
+);
+?>
+DONE
+--EXPECTF--
+Test
+%s
+DONE