Conditions | 2 |
Paths | 3 |
Total Lines | 21 |
Code Lines | 14 |
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 | $output = ob_get_clean(); |
||
60 | $this->assertContains("Can't find file", $output); |
||
61 | |||
62 | return true; |
||
63 | } |
||
64 | |||
65 | $this->fail('Exception not thrown when Expected'); |
||
66 | } |
||
68 |