| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function testCompareCommand($locale, $valid) |
||
| 27 | { |
||
| 28 | self::bootKernel(); |
||
| 29 | |||
| 30 | $application = new Application(self::$kernel); |
||
| 31 | $application->setAutoExit(false); |
||
| 32 | $application->setCatchExceptions(false); |
||
| 33 | |||
| 34 | $input = new ArrayInput(array('command' => 'incenteev:translation:compare', 'locale' => $locale, '-d' => array('test'))); |
||
| 35 | $output = new NullOutput(); |
||
| 36 | |||
| 37 | $expectedExitCode = $valid ? 0 : 1; |
||
| 38 | |||
| 39 | $this->assertSame($expectedExitCode, $application->run($input, $output)); |
||
| 40 | } |
||
| 65 |