projects
/
m6w6
/
ext-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
merge danglind Statement->descAsync patch
[m6w6/ext-pq]
/
tests
/
notify001.phpt
diff --git
a/tests/notify001.phpt
b/tests/notify001.phpt
index edb61205e2a3d137a04f5581d3cf1d8e23b680a5..3f596a314465606acd3018e781ed4331cc682590 100644
(file)
--- 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();
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();
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--
?>
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): this is an async test
int(0)
+int(1)
+test(%d): just to be sure
DONE
DONE