X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fpersistent001.phpt;h=9f8fc0f7e84735c5fe7ef6197e6dae27e543563a;hp=b2c72c30e57a91f2e1d9e4b0e34ded966b3f5f7a;hb=e125f60f2ca9863a2ad5eb2d5e615fab421c31e4;hpb=352b77694b9b6d9c50f9fcfaa6db34817308d11e diff --git a/tests/persistent001.phpt b/tests/persistent001.phpt index b2c72c3..9f8fc0f 100644 --- a/tests/persistent001.phpt +++ b/tests/persistent001.phpt @@ -13,7 +13,14 @@ for ($i=0; $i<100; ++$i) { if ($i % 2) { $t = new pq\Transaction($c); + $c->listen("chan", function($chan, $msg) { + // dummy + }); + $c->on(pq\Connection::EVENT_RESULT, function($c, $res) { + }); } + + if (!($i%10)) gc_collect_cycles(); $c->exec(""); } @@ -23,7 +30,7 @@ DONE --EXPECTF-- Test array(1) { - ["%s"]=> + ["%S"]=> array(2) { ["used"]=> int(1)