X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fnotify001.phpt;h=3f596a314465606acd3018e781ed4331cc682590;hp=edb61205e2a3d137a04f5581d3cf1d8e23b680a5;hb=6abdd023da1fdda411f3f974c484ccbcae3b9c81;hpb=7f802ff71998282994dbfd9af51c08bb5d6dccdc diff --git a/tests/notify001.phpt b/tests/notify001.phpt index edb6120..3f596a3 100644 --- a/tests/notify001.phpt +++ b/tests/notify001.phpt @@ -25,8 +25,18 @@ $w = null; $e = null; var_dump(stream_select($r, $w, $e, NULL)); $consumer->poll(); +$producer->notify("other", "this should not show up"); + var_dump(stream_select($r, $w, $e, 0)); $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)); +$consumer->poll(); + ?> DONE --EXPECTF-- @@ -35,4 +45,6 @@ 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