Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php namespace Chekote\PHPUnit\Framework; |
||
13 | class TestCase extends BaseTestCase |
||
14 | { |
||
15 | /** |
||
16 | * Asserts that the lambda throws the specified exception. |
||
17 | * |
||
18 | * @param Exception $expected the expected exception (class and message must match) |
||
19 | * @param callable $lambda the lambda to execute |
||
20 | * @throws PHPUnit_Framework_ExpectationFailedException If the specified exception is not thrown.` |
||
21 | */ |
||
22 | public function assertException(Exception $expected, callable $lambda): void |
||
33 |