Skip to content

Commit a334afa

Browse files
committed
test: options/arguments defaults
1 parent 4c00825 commit a334afa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Helper/OutputHelperTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function test_show_arguments()
5454
'Arg Header',
5555
'',
5656
'Arguments:',
57-
' [config] ',
57+
' [config] [default: "defaultConfig"]',
5858
' <path> The path',
5959
'',
6060
'Arg Footer',
@@ -65,14 +65,14 @@ public function test_show_options()
6565
{
6666
$this->newHelper()->showOptionsHelp([
6767
new Option('-h --help', 'Show help'),
68-
new Option('-n|--full-name <name>', 'Full name'),
68+
new Option('-n|--full-name <name>', 'Full name', 'John'),
6969
], 'Opt Header', 'Opt Footer');
7070

7171
$this->assertSame([
7272
'Opt Header',
7373
'',
7474
'Options:',
75-
' <-n|--full-name> Full name',
75+
' <-n|--full-name> Full name [default: "John"]',
7676
' [-h|--help] Show help',
7777
'',
7878
'Opt Footer',

0 commit comments

Comments
 (0)