@@ -7,10 +7,10 @@ |
||
| 7 | 7 | protected function init () |
| 8 | 8 | { |
| 9 | 9 | $this->name('Hello World') |
| 10 | - ->version('1.0.0-alpha') |
|
| 11 | - ->description('Shows a "Hello World" message') |
|
| 12 | - ->options(['--formal']) |
|
| 13 | - ->describe('--formal', 'Use formal "Greetings" instead of "Hello"'); |
|
| 10 | + ->version('1.0.0-alpha') |
|
| 11 | + ->description('Shows a "Hello World" message') |
|
| 12 | + ->options(['--formal']) |
|
| 13 | + ->describe('--formal', 'Use formal "Greetings" instead of "Hello"'); |
|
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | protected function execute() |
@@ -9,23 +9,23 @@ |
||
| 9 | 9 | public function test_it_prints_hello_world() |
| 10 | 10 | { |
| 11 | 11 | $this->withStdin("Amine\n") |
| 12 | - ->command(new HelloWorld) |
|
| 13 | - ->prints("Your name:") |
|
| 14 | - ->prints("Hello Amine<br>"); |
|
| 12 | + ->command(new HelloWorld) |
|
| 13 | + ->prints("Your name:") |
|
| 14 | + ->prints("Hello Amine<br>"); |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | public function test_it_uses_formal_greeting() |
| 18 | 18 | { |
| 19 | 19 | $this->withStdin("Amine\n") |
| 20 | - ->command(new HelloWorld, ['--formal']) |
|
| 21 | - ->prints("Your name:") |
|
| 22 | - ->prints("Greetings Amine<br>"); |
|
| 20 | + ->command(new HelloWorld, ['--formal']) |
|
| 21 | + ->prints("Your name:") |
|
| 22 | + ->prints("Greetings Amine<br>"); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | public function test_it_shows_hello_world_version() |
| 26 | 26 | { |
| 27 | 27 | $this->command(new HelloWorld, ['--version']) |
| 28 | - ->printsExactly("<info>Hello World</info> version <info>1.0.0-alpha</info><br>"); |
|
| 28 | + ->printsExactly("<info>Hello World</info> version <info>1.0.0-alpha</info><br>"); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | } |