Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class EnhancedTestCase extends PHPUnit\Framework\TestCase { |
||
8 | |||
9 | /** |
||
10 | * @deprecated Exception is not caught. Additional assertions in the same TestCase method will not be executed. Use catchExpectedException |
||
11 | * |
||
12 | * @param string $exception |
||
13 | * @return void |
||
14 | */ |
||
15 | public function expectException(string $exception): void |
||
16 | { |
||
17 | parent::expectException($exception); |
||
18 | } |
||
19 | |||
20 | protected function catchExpectedException(string $exception, \Closure $callback) { |
||
30 | } |
||
31 | } |