8000 feat: #43086 add blacklisting of reserved shortcuts for InputOptions in commands by Chris53897 · Pull Request #43091 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

feat: #43086 add blacklisting of reserved shortcuts for InputOptions in commands #43091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat: #43086 add blacklisting of reserved shortcuts for InputOptions …
…in commands
  • Loading branch information
Chris53897 committed Sep 19, 2021
commit 277b9f40a14e8977b5a8b6e76333ef668f2a4ea3
13 changes: 9 additions & 4 deletions src/Symfony/Component/Console/Tests/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -503,10 +503,15 @@ public function testDontRunAlternativeNamespaceName()
$application->setAutoExit(false);
$tester = new ApplicationTester($application);
$tester->run(['command' => 'foos:bar1'], ['decorated' => false]);
$display = $tester->getDisplay(true);
$this->assertStringContainsString('There are no commands defined in the "foos" namespace.', $display);
$this->assertStringContainsString('Did you mean this?', $display);
$this->assertStringContainsString('foo', $display);
$this->assertSame('

There are no commands defined in the "foos" namespace.

Did you mean this?
foo


', $tester->getDisplay(true));
}

public function testCanRunAlternativeCommandName()
Expand Down
0