1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-11-30 04:19:49 +01:00
ext-pq/tests/reset001.phpt
2013-02-21 13:18:06 +01:00

26 lines
349 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);
$c->on(pq\Connection::EVENT_RESET, function ($c) { print "RESET!\n"; });
$c->reset();
var_dump($c->status);
?>
DONE
--EXPECT--
Test
int(0)
RESET!
int(0)
DONE