Conditions | 2 |
Paths | 3 |
Total Lines | 21 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
28 | public function testRelatedMethods() |
||
29 | { |
||
30 | $GLOBALS['argv'] = [ |
||
31 | 'diffFilter', |
||
32 | '--phpstan', |
||
33 | '--autoload=' . __DIR__ . '/fixtures/phpstanTypeError.php', |
||
34 | __DIR__ . '/fixtures/addTypeError.txt', |
||
35 | __DIR__ . '/fixtures/phpstanTypeError.txt' |
||
36 | ]; |
||
37 | |||
38 | try { |
||
39 | ob_start(); |
||
40 | require(__DIR__ . "/../src/Runners/generic.php"); |
||
41 | } catch (Exception $exception) { |
||
42 | $output = ob_get_clean(); |
||
43 | $this->assertContains('used test.php', $output); |
||
44 | return true; |
||
45 | } |
||
46 | |||
47 | $this->fail('Exception not thrown when Expected'); |
||
48 | } |
||
49 | } |
||
50 |