| Conditions | 2 |
| Paths | 3 |
| Total Lines | 23 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public function testRelatedMethodsFileNotFound() |
||
| 46 | { |
||
| 47 | $GLOBALS['argv'] = [ |
||
| 48 | 'diffFilter', |
||
| 49 | '--phpcs', |
||
| 50 | '--report=json', |
||
| 51 | __DIR__ . '/fixtures/DocBlocks.txt', |
||
| 52 | __DIR__ . '/fixtures/DocBlocksNotFound.json' |
||
| 53 | ]; |
||
| 54 | |||
| 55 | try { |
||
| 56 | ob_start(); |
||
| 57 | require(__DIR__ . "/../src/Runners/generic.php"); |
||
| 58 | } catch (Exception $exception) { |
||
| 59 | var_dump($exception); |
||
|
|
|||
| 60 | $output = ob_get_clean(); |
||
| 61 | $this->assertContains("Can't find file", $output); |
||
| 62 | |||
| 63 | return true; |
||
| 64 | } |
||
| 65 | |||
| 66 | $this->fail('Exception not thrown when Expected'); |
||
| 67 | } |
||
| 68 | } |
||
| 69 |