X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fpersistent001.phpt;h=781dfdeb93ba8631e6212b433ddec3e38451244b;hp=b2c72c30e57a91f2e1d9e4b0e34ded966b3f5f7a;hb=3024b0b5a903a2bcb082b01e1787410dc9508a9d;hpb=3e70f1ceb6d5c6b0b8f305a93e3bd3495c88a0ea diff --git a/tests/persistent001.phpt b/tests/persistent001.phpt index b2c72c3..781dfde 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 + }); + $e = new pq\Event($c, pq\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)