remove pq\Event
[m6w6/ext-pq] / tests / persistent001.phpt
index 781dfdeb93ba8631e6212b433ddec3e38451244b..9f8fc0f7e84735c5fe7ef6197e6dae27e543563a 100644 (file)
@@ -16,7 +16,7 @@ for ($i=0; $i<100; ++$i) {
                $c->listen("chan", function($chan, $msg) {
                        // dummy
                });
-               $e = new pq\Event($c, pq\Event::RESULT, function($c, $res) {
+               $c->on(pq\Connection::EVENT_RESULT, function($c, $res) {
                });
        }