| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function testExecute() |
||
| 15 | { |
||
| 16 | $application = new Application(); |
||
| 17 | $commandTester = new CommandTester($command = $application->get('init')); |
||
| 18 | $commandTester->execute(['command' => $command->getName()], ['interactive' => false, 'decorated' => false]); |
||
| 19 | |||
| 20 | $json = json_decode(file_get_contents(getcwd() . '/bower.json'), true); |
||
| 21 | $this->assertArrayHasKey('name', $json); |
||
| 22 | $this->assertArrayHasKey('authors', $json); |
||
| 23 | $this->assertArrayHasKey('dependencies', $json); |
||
| 24 | } |
||
| 25 | |||
| 34 |