8000 [Process] Fix broken tests for PHP 7.2 by sroze · Pull Request #24516 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Process] Fix broken tests for PHP 7.2 #24516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
On PHP 7.2, stdin is Standard input code
  • Loading branch information
sroze committed Nov 6, 2017
commit 2fba4206473329ea766c8aefa417245919d3bc21
13 changes: 13 additions & 0 deletions src/Symfony/Component/Process/Tests/ProcessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,19 @@ public function testRawCommandLine()
)

EOTXT;

if (\PHP_VERSION_ID >= 70200) {
$expected = <<<EOTXT
Array
(
[0] => Standard input code
[1] => a
[2] =>
[3] => b
)

EOTXT;
}
$this->assertSame($expected, $p->getOutput());
}

Expand Down
0