mirror of
https://github.com/danog/ext-pq.git
synced 2024-11-26 20:04:44 +01:00
26 lines
349 B
PHP
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
|