2013-01-21 17:44:37 +01:00
|
|
|
--TEST--
|
|
|
|
connection reset
|
|
|
|
--SKIPIF--
|
|
|
|
<?php include "_skipif.inc"; ?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
echo "Test\n";
|
|
|
|
|
|
|
|
include "_setup.inc";
|
|
|
|
|
|
|
|
$c = new pq\Connection(PQ_DSN);
|
2013-02-12 21:40:31 +01:00
|
|
|
$c->reset();
|
|
|
|
var_dump($c->status);
|
2013-02-14 14:54:22 +01:00
|
|
|
new pq\Event($c, pq\Event::RESET, function ($c) { print "RESET!\n"; });
|
2013-02-12 21:40:31 +01:00
|
|
|
$c->reset();
|
|
|
|
var_dump($c->status);
|
2013-01-21 17:44:37 +01:00
|
|
|
|
|
|
|
?>
|
|
|
|
DONE
|
|
|
|
--EXPECT--
|
|
|
|
Test
|
2013-02-12 21:40:31 +01:00
|
|
|
int(0)
|
2013-02-14 14:54:22 +01:00
|
|
|
RESET!
|
2013-02-12 21:40:31 +01:00
|
|
|
int(0)
|
2013-01-21 17:44:37 +01:00
|
|
|
DONE
|