| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Tarsana\Command\Examples\Tests; |
||
| 7 | class HelloWorldTest extends CommandTestCase { |
||
| 8 | |||
| 9 | public function test_it_prints_hello_world() |
||
| 15 | } |
||
| 16 | |||
| 17 | public function test_it_uses_formal_greeting() |
||
| 18 | { |
||
| 19 | $this->withStdin("Amine\n") |
||
| 20 | ->command(new HelloWorld, ['--formal']) |
||
| 21 | ->prints("Your name:") |
||
| 22 | ->prints("Greetings Amine<br>"); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function test_it_shows_hello_world_version() |
||
| 29 | } |
||
| 30 | |||
| 32 |