X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Freset001.phpt;h=9527ccbcd5ab6548f04b6124ad8d77e209f1cc85;hb=2711291c5bb35269676ac72b93bf9404eaf321b9;hp=f83e042a875292d2c018c0c0d021db4a5a35053c;hpb=33f82236a1e9061aba8050399835e82e0531c82b;p=m6w6%2Fext-pq diff --git a/tests/reset001.phpt b/tests/reset001.phpt index f83e042..9527ccb 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); +new pq\Event($c, pq\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