| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function testCompareCommand($locale, $valid) |
||
| 16 | { |
||
| 17 | self::bootKernel(); |
||
| 18 | |||
| 19 | $application = new Application(self::$kernel); |
||
| 20 | $application->setAutoExit(false); |
||
| 21 | $application->setCatchExceptions(false); |
||
| 22 | |||
| 23 | $input = new ArrayInput(array('command' => 'incenteev:translation:compare', 'locale' => $locale, '-d' => array('test'))); |
||
| 24 | $output = new NullOutput(); |
||
| 25 | |||
| 26 | $expectedExitCode = $valid ? 0 : 1; |
||
| 27 | |||
| 28 | $this->assertSame($expectedExitCode, $application->run($input, $output)); |
||
| 29 | } |
||
| 30 | |||
| 44 |