| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function testExecute() { |
||
| 22 | $application = new Application(); |
||
| 23 | $application->add( new HiCommand() ); |
||
| 24 | |||
| 25 | $command = $application->find( 'hi' ); |
||
| 26 | $commandTester = new CommandTester( $command ); |
||
| 27 | $commandTester->execute( array( 'command' => $command->getName() ) ); |
||
| 28 | |||
| 29 | $this->assertRegExp( '/Hi World!/', $commandTester->getDisplay() ); |
||
| 30 | } |
||
| 31 | |||
| 33 |