1
0
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:
Michael Wallner 2014-12-05 12:17:37 +01:00
parent e7ce3fd45d
commit a76b00c331
2 changed files with 40 additions and 0 deletions

View 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===

View 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===