Commit c1e2bb5
committed
minor #6644 [Console] Fix wrong quotes in QuestionHelper::setInputStream() (chalasr)
This PR was merged into the 2.7 branch.
Discussion
----------
[Console] Fix wrong quotes in QuestionHelper::setInputStream()
As pointed by [this Stack Overflow question](http://stackoverflow.com/questions/37709966/symfony-interactive-command-test-ends-with-runtimeexception/37712073), the code example showing how to test a command that interacts with the user is wrong.
The reason is that `\n` between simple quotes are [not considered as break lines](http://stackoverflow.com/questions/2531969/print-newline-in-php-in-single-quotes) in PHP, even escaped with an additional `\`.
Commits
-------
5679e2d Fix wrong quotes in QuestionHelper::setInputStream()1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| |||
0 commit comments