X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fnotify001.phpt;h=c0b26350aea690ff035584aa16c585ce1f122b22;hp=3f596a314465606acd3018e781ed4331cc682590;hb=13b06e992c066b4cf1f381273b4f5f5e15764293;hpb=53220e4b7f293ed8c1c8418efc98c57d4b205e1d diff --git a/tests/notify001.phpt b/tests/notify001.phpt index 3f596a3..c0b2635 100644 --- a/tests/notify001.phpt +++ b/tests/notify001.phpt @@ -22,19 +22,28 @@ $producer->notify("test", "this is an async test"); $r = array($consumer->socket); $w = null; $e = null; -var_dump(stream_select($r, $w, $e, NULL)); +stream_select($r, $w, $e, NULL); $consumer->poll(); $producer->notify("other", "this should not show up"); -var_dump(stream_select($r, $w, $e, 0)); +stream_select($r, $w, $e, 0,1000); $consumer->poll(); $producer->notify("test", "just to be sure"); $r = array($consumer->socket); $w = null; $e = null; -var_dump(stream_select($r, $w, $e, NULL)); +stream_select($r, $w, $e, 0,1000); +$consumer->poll(); + +$consumer->unlisten("test"); + +$producer->notify("test", "this shouldn't show up either"); + +$r = array($consumer->socket); +$w = null; $e = null; +stream_select($r, $w, $e, 0,1000); $consumer->poll(); ?> @@ -42,9 +51,6 @@ DONE --EXPECTF-- Test test(%d): this is a test -int(1) test(%d): this is an async test -int(0) -int(1) test(%d): just to be sure DONE