X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Freset001.phpt;h=ac2200e80b33d692da63fedb70751344f75a5943;hp=f83e042a875292d2c018c0c0d021db4a5a35053c;hb=dd52670ccf9557faa0152babbfcf72b5c1be2ceb;hpb=33f82236a1e9061aba8050399835e82e0531c82b diff --git a/tests/reset001.phpt b/tests/reset001.phpt index f83e042..ac2200e 100644 --- a/tests/reset001.phpt +++ b/tests/reset001.phpt @@ -9,13 +9,17 @@ echo "Test\n"; include "_setup.inc"; $c = new pq\Connection(PQ_DSN); -var_dump($c->reset()); -var_dump($c->reset()); +$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 -bool(true) -bool(true) +int(0) +RESET! +int(0) DONE