Conditions | 2 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function testMissingHandler() |
||
29 | { |
||
30 | $GLOBALS['argv'] = [ |
||
31 | 'diffFilter', |
||
32 | __DIR__ . '/fixtures/change.txt', |
||
33 | __DIR__ . '/fixtures/phpcs.json' |
||
34 | ]; |
||
35 | try { |
||
36 | ob_start(); |
||
37 | require(__DIR__ . "/../src/Runners/generic.php"); |
||
38 | } catch (Exception $exception) { |
||
39 | $output = ob_get_clean(); |
||
40 | $this->assertContains('--phpcs', $output); |
||
41 | return true; |
||
42 | } |
||
43 | |||
44 | $this->fail('Exception not thrown when Expected'); |
||
45 | } |
||
47 |