X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fpersistent001.phpt;h=9f8fc0f7e84735c5fe7ef6197e6dae27e543563a;hp=781dfdeb93ba8631e6212b433ddec3e38451244b;hb=630017bcb9957e50967f5528b947d33746c07a4f;hpb=daf2e8ab5eb324b0a0447e87a92afb6788a722a7 diff --git a/tests/persistent001.phpt b/tests/persistent001.phpt index 781dfde..9f8fc0f 100644 --- a/tests/persistent001.phpt +++ b/tests/persistent001.phpt @@ -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) { }); }