1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-12-03 09:48:02 +01:00
ext-pq/tests/reset001.phpt
Michael Wallner 3024b0b5a9 tests & fixes
2013-02-14 14:54:22 +01:00

26 lines
348 B
PHP

--TEST--
connection reset
--SKIPIF--
<?php include "_skipif.inc"; ?>
--FILE--
<?php
echo "Test\n";
include "_setup.inc";
$c = new pq\Connection(PQ_DSN);
$c->reset();
var_dump($c->status);
new pq\Event($c, pq\Event::RESET, function ($c) { print "RESET!\n"; });
$c->reset();
var_dump($c->status);
?>
DONE
--EXPECT--
Test
int(0)
RESET!
int(0)
DONE