mirror of
https://github.com/danog/ext-pq.git
synced 2025-01-22 22:01:33 +01:00
add missing tests
This commit is contained in:
parent
e7ce3fd45d
commit
a76b00c331
20
tests/crash_cur_reverse_dep.phpt
Normal file
20
tests/crash_cur_reverse_dep.phpt
Normal file
@ -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===
|
20
tests/crash_txn_reverse_dep.phpt
Normal file
20
tests/crash_txn_reverse_dep.phpt
Normal file
@ -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===
|
Loading…
x
Reference in New Issue
Block a user