| Conditions | 2 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function testNoValidLines() |
||
| 29 | { |
||
| 30 | $GLOBALS['argv'] = [ |
||
| 31 | 'diffFilter', |
||
| 32 | '--psalm', |
||
| 33 | __DIR__ . '/fixtures/change.txt', |
||
| 34 | __DIR__ . '/fixtures/psalm-change.xml', |
||
| 35 | ]; |
||
| 36 | try { |
||
| 37 | ob_start(); |
||
| 38 | require(__DIR__ . "/../src/Runners/generic.php"); |
||
| 39 | } catch (Exception $exception) { |
||
| 40 | $output = ob_get_clean(); |
||
| 41 | $this->assertEquals(2, $exception->getCode()); |
||
| 42 | $this->assertContains('0.00%', $output); |
||
| 43 | return; |
||
| 44 | } |
||
| 45 | $this->fail("no exception thrown"); |
||
| 46 | } |
||
| 48 |