X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fnotify001.phpt;h=e255353e27ed8ed2e2e29ee725f9ca3ddf1cdd58;hp=3f596a314465606acd3018e781ed4331cc682590;hb=80ad126795d3f1f420adc506fb5649264f765b1b;hpb=53220e4b7f293ed8c1c8418efc98c57d4b205e1d diff --git a/tests/notify001.phpt b/tests/notify001.phpt index 3f596a3..e255353 100644 --- a/tests/notify001.phpt +++ b/tests/notify001.phpt @@ -34,7 +34,16 @@ $producer->notify("test", "just to be sure"); $r = array($consumer->socket); $w = null; $e = null; -var_dump(stream_select($r, $w, $e, NULL)); +var_dump(stream_select($r, $w, $e, 0)); +$consumer->poll(); + +$consumer->unlisten("test"); + +$producer->notify("test", "this shouldn't show up either"); + +$r = array($consumer->socket); +$w = null; $e = null; +var_dump(stream_select($r, $w, $e, 0)); $consumer->poll(); ?> @@ -47,4 +56,5 @@ test(%d): this is an async test int(0) int(1) test(%d): just to be sure +int(0) DONE