add missing tests
authorMichael Wallner <mike@php.net>
Fri, 5 Dec 2014 11:17:37 +0000 (12:17 +0100)
committerMichael Wallner <mike@php.net>
Wed, 17 Dec 2014 06:51:19 +0000 (07:51 +0100)
tests/crash_cur_reverse_dep.phpt [new file with mode: 0644]
tests/crash_txn_reverse_dep.phpt [new file with mode: 0644]

diff --git a/tests/crash_cur_reverse_dep.phpt b/tests/crash_cur_reverse_dep.phpt
new file mode 100644 (file)
index 0000000..a9f4d19
--- /dev/null
@@ -0,0 +1,20 @@
+--TEST--
+crash txn reverse dependency from connection
+--SKIPIF--
+<?php
+include "_skipif.inc";
+?>
+--FILE--
+<?php
+echo "Test\n";
+
+include "_setup.inc";
+
+$c = new pq\Connection(PQ_DSN);
+$c->t = $c->startTransaction();
+
+?>
+===DONE===
+--EXPECT--
+Test
+===DONE===
diff --git a/tests/crash_txn_reverse_dep.phpt b/tests/crash_txn_reverse_dep.phpt
new file mode 100644 (file)
index 0000000..7c9e8fc
--- /dev/null
@@ -0,0 +1,20 @@
+--TEST--
+crash txn reverse dependency from connection
+--SKIPIF--
+<?php
+include "_skipif.inc";
+?>
+--FILE--
+<?php
+echo "Test\n";
+
+include "_setup.inc";
+
+$c = new pq\Connection(PQ_DSN);
+$c->c = $c->declare("test", "SELECT 1");
+
+?>
+===DONE===
+--EXPECT--
+Test
+===DONE===