Skip to content

Commit 65ebe99

Browse files
[Process] Workaround PHP bug #75515 in ProcessTest::testSimpleInputStream()
1 parent a050ee2 commit 65ebe99

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Symfony/Component/Process/Tests/ProcessTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,13 +1223,9 @@ public function testIteratorInput()
12231223

12241224
public function testSimpleInputStream()
12251225
{
1226-
if (\PHP_VERSION_ID === 70200 && \PHP_EXTRA_VERSION === 'RC6') {
1227-
$this->markTestSkipped('See bug #75515 in PHP 7.2RC6.');
1228-
}
1229-
12301226
$input = new InputStream();
12311227

1232-
$process = $this->getProcessForCode('echo \'ping\'; stream_copy_to_stream(STDIN, STDOUT);');
1228+
$process = $this->getProcessForCode('echo \'ping\'; echo fread(STDIN, 4); echo fread(STDIN, 4);');
12331229
$process->setInput($input);
12341230

12351231
$process->start(function ($type, $data) use ($input) {

0 commit comments

Comments
 (0)