This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony
Fabien Potencier abd9b72fbb minor #14638 [Console] Fix QuestionHelperTest (ogizanagi)
This PR was merged into the 2.7 branch.

Discussion
----------

[Console] Fix QuestionHelperTest

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

This PR fixes the following issues in `QuestionHelperTest`:
- When using the `InputInterface` mock with interactive option, asking a ChoiceQuestion without specifying max attempts nor a default value led to an infinite loop when invalid values are submitted. In case there is something wrong in tests, it wasn't obvious to understand what's happening, as the process was constantly waiting for inputs.
- `testAmbiguousChoiceFromChoicelist` test was wrong as the autocompleter filled the value and the test was never triggered (+max attempt issue).

Commits
-------

6a0308d [Console] Fix QuestionHelperTest
2015-05-16 15:30:28 +02:00
..
Bridge Merge branch '2.6' into 2.7 2015-05-15 15:33:16 +02:00
Bundle bug #14645 [WebProfilerBundle] Fix compatiblity with HttpKernel < 2.7 (GromNaN) 2015-05-15 16:03:58 +02:00
Component minor #14638 [Console] Fix QuestionHelperTest (ogizanagi) 2015-05-16 15:30:28 +02:00