We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ba90fb commit c549e4dCopy full SHA for c549e4d
tests/Input/DefaultOptionTest.php
@@ -22,12 +22,16 @@ public function test_V()
22
public function test_help()
23
{
24
$p = $this->newCommand()
25
- ->arguments('[arg]')
+ ->argument('[arg]', 'Some desc')
26
->option('-o --option')
27
+ ->usage('cmdname --option opt <arg>')
28
->parse(['php', '--help']);
29
30
$this->assertContains('cmdname', $buffer = $this->buffer());
31
+ $this->assertContains('Usage Examples:', $buffer);
32
+ $this->assertContains('--option opt <arg>', $buffer);
33
$this->assertContains('[arg]', $buffer);
34
+ $this->assertContains('Some desc', $buffer);
35
$this->assertContains('[-o|--option]', $buffer);
36
}
37
0 commit comments