8000 [Console] fix console test · symfony/symfony@bebf7ec · GitHub
[go: up one dir, main page]

Skip to content

Commit bebf7ec

Browse files
author
Amrouche Hamza
committed
[Console] fix console test
1 parent c12c078 commit bebf7ec

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/Symfony/Component/Console/Tests/ApplicationTest.php

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -508,17 +508,9 @@ public function testDontRunAlternativeCommandName()
508508
$tester->setInputs(array('n'));
509509
$exitCode = $tester->run(array('command' => 'foos'), array('decorated' => false));
510510
$this->assertSame(1, $exitCode);
511-
$this->assertSame(<<<OUTPUT
512-
513-
514-
Command "foos" is not defined.
515-
516-
517-
Do you want to run "foo" instead? (yes/no) [no]:
518-
>
519-
520-
OUTPUT
521-
, $tester->getDisplay(true));
511+
$display = trim($tester->getDisplay(true));
512+
$this->assertContains('Command "foos" is not defined', $display);
513+
$this->assertContains('Do you want to run "foo" instead? (yes/no) [no]:', $display);
522514
}
523515

524516
public function provideInvalidCommandNamesSingle()

0 commit comments

Comments
 (0)
0