File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
tests/React/Tests/EventLoop Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -169,9 +169,9 @@ public function stopShouldStopRunningLoop()
169
169
170
170
public function testIgnoreRemovedCallback ()
171
171
{
172
+ // two independent streams, both should be readable right away
172
173
$ stream1 = fopen ('php://temp ' , 'r+ ' );
173
174
$ stream2 = fopen ('php://temp ' , 'r+ ' );
174
- // two independant streams, both should be readable right away
175
175
176
176
$ loop = $ this ->loop ;
177
177
$ loop ->addReadStream ($ stream1 , function ($ stream ) use ($ loop , $ stream2 ) {
@@ -185,6 +185,11 @@ public function testIgnoreRemovedCallback()
185
185
$ loop ->removeReadStream ($ stream1 );
186
186
});
187
187
188
+ fwrite ($ stream1 , "foo \n" );
189
+ rewind ($ stream1 );
190
+ fwrite ($ stream2 , "foo \n" );
191
+ rewind ($ stream2 );
192
+
188
193
$ loop ->run ();
189
194
}
190
195
You can’t perform that action at this time.
0 commit comments