Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1e7f9a commit 4e7ee92Copy full SHA for 4e7ee92
tests/React/Tests/EventLoop/AbstractLoopTest.php
@@ -169,9 +169,9 @@ public function stopShouldStopRunningLoop()
169
170
public function testIgnoreRemovedCallback()
171
{
172
+ // two independent streams, both should be readable right away
173
$stream1 = fopen('php://temp', 'r+');
174
$stream2 = fopen('php://temp', 'r+');
- // two independant streams, both should be readable right away
175
176
$loop = $this->loop;
177
$loop->addReadStream($stream1, function ($stream) use ($loop, $stream2) {
@@ -185,6 +185,11 @@ public function testIgnoreRemovedCallback()
185
$loop->removeReadStream($stream1);
186
});
187
188
+ fwrite($stream1, "foo\n");
189
+ rewind($stream1);
190
+ fwrite($stream2, "foo\n");
191
+ rewind($stream2);
192
+
193
$loop->run();
194
}
195
0 commit comments