Skip to content

Commit 991eec1

Browse files
committed
minor #14661 [Console] Remove a useless assert in QuestionHelperTest (ogizanagi)
This PR was merged into the 2.6 branch. Discussion ---------- [Console] Remove a useless assert in QuestionHelperTest | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This assert was pretty useless, as it is unreachable under expected circumstances, and does not bring anything to this test purpose otherwise. Commits ------- 55b2361 [Console] Remove a useless assert in QuestionHelperTest
2 parents 624dafb + 55b2361 commit 991eec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public function testAskAndValidate()
191191

192192
$dialog->setInputStream($this->getInputStream("green\nyellow\norange\n"));
193193
try {
194-
$this->assertEquals('white', $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
194+
$dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question);
195195
$this->fail();
196196
} catch (\InvalidArgumentException $e) {
197197
$this->assertEquals($error, $e->getMessage());

0 commit comments

Comments
 (0)