1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-12-02 09:18:02 +01:00
ext-pq/tests/reset001.phpt

26 lines
349 B
Plaintext
Raw Normal View History

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-21 13:18:06 +01:00
$c->on(pq\Connection::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