8000 [Console] fix tests · symfony/symfony@cd2a8d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit cd2a8d2

Browse files
[Console] fix tests
1 parent 2c04fad commit cd2a8d2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Symfony/Component/Console/Helper/QuestionHelper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ function ($match) use ($ret) {
282282
$output->write($c);
283283
break;
284284
}
285+
286+
$numMatches = 0;
285287
}
286288

287289
continue;

src/Symfony/Component/Console/Tests/Helper/QuestionHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ public function testTraversableMultiselectAutocomplete()
711711
// F00<BACKSPACE><BACKSPACE>o<TAB>,A<DOWN ARROW>,<SPACE>SecurityBundle<NEWLINE>
712712
// Acme<TAB>,<SPACE>As<TAB><29x BACKSPACE>S<TAB><NEWLINE>
713713
// Ac<TAB>,As<TAB><3x BACKSPACE>d<TAB><NEWLINE>
714-
$inputStream = $this->getInputStream("\nF\t\nA\033[A\033[A\033[A\t,F\t\nF00\177\177o\t,A\033[B\t, SecurityBundle\nSecurityBundle\nAcme\t, As\t\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177S\t\nAc\t,As\t\177\177\177d\t\n");
714+
$inputStream = $this->getInputStream("\nF\t\nA\033[A\033[A\033[A\t,F\t\nF00\177\177o\t,A\033[B\t, SecurityBundle\nAcme\t, As\t\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177S\t\nAc\t,As\t\177\177\177d\t\n");
715715

716716
$dialog = new QuestionHelper();
717717
$helperSet = new HelperSet([new FormatterHelper()]);

0 commit comments

Comments
 (0)
0