Skip to content

Commit ef3effa

Browse files
committed
Do not rely on echo -n to also support Mac OS X
1 parent bb80b85 commit ef3effa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/DuplexResourceStreamIntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public function testReadsMultipleChunksFromProcessPipe($condition, $loopFactory)
248248

249249
$loop = $loopFactory();
250250

251-
$stream = new ReadableResourceStream(popen('echo -n a;sleep 0.1;echo -n b;sleep 0.1;echo -n c', 'r'), $loop);
251+
$stream = new ReadableResourceStream(popen('echo a;sleep 0.1;echo b;sleep 0.1;echo c', 'r'), $loop);
252252

253253
$buffer = '';
254254
$stream->on('data', function ($chunk) use (&$buffer) {
@@ -260,7 +260,7 @@ public function testReadsMultipleChunksFromProcessPipe($condition, $loopFactory)
260260

261261
$loop->run();
262262

263-
$this->assertEquals('abc', $buffer);
263+
$this->assertEquals("a\n" . "b\n" . "c\n", $buffer);
264264
}
265265

266266
/**

0 commit comments

Comments
 (0)