pq\Result::map(), XTN savepoints & snapshots
[m6w6/ext-pq] / tests / savepoint001.phpt
diff --git a/tests/savepoint001.phpt b/tests/savepoint001.phpt
new file mode 100644 (file)
index 0000000..2f52006
--- /dev/null
@@ -0,0 +1,24 @@
+--TEST--
+savepoints
+--SKIPIF--
+<?php include "_skipif.inc"; ?>
+--FILE--
+<?php
+echo "Test\n";
+
+include "_setup.inc";
+
+$c = new pq\Connection(PQ_DSN);
+$t = $c->startTransaction();
+       $t->savepoint();
+               $t->savepoint();
+               $t->rollback();
+       $t->commit();
+$t->rollback();
+
+?>
+DONE
+--EXPECT--
+Test
+DONE
+