X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Freset001.phpt;h=ac2200e80b33d692da63fedb70751344f75a5943;hp=9527ccbcd5ab6548f04b6124ad8d77e209f1cc85;hb=630017bcb9957e50967f5528b947d33746c07a4f;hpb=daf2e8ab5eb324b0a0447e87a92afb6788a722a7 diff --git a/tests/reset001.phpt b/tests/reset001.phpt index 9527ccb..ac2200e 100644 --- a/tests/reset001.phpt +++ b/tests/reset001.phpt @@ -11,7 +11,7 @@ include "_setup.inc"; $c = new pq\Connection(PQ_DSN); $c->reset(); var_dump($c->status); -new pq\Event($c, pq\Event::RESET, function ($c) { print "RESET!\n"; }); +$c->on(pq\Connection::EVENT_RESET, function ($c) { print "RESET!\n"; }); $c->reset(); var_dump($c->status);