File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
src/Symfony/Component/Console/Tests Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -508,17 +508,9 @@ public function testDontRunAlternativeCommandName()
508
508
$ tester ->setInputs (array ('n ' ));
509
509
$ exitCode = $ tester ->run (array ('command ' => 'foos ' ), array ('decorated ' => false ));
510
510
$ 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 );
522
514
}
523
515
524
516
public function provideInvalidCommandNamesSingle ()
You can’t perform that action at this time.
0 commit comments