Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class ExceptionTest extends \PHPUnit_Framework_TestCase |
||
11 | { |
||
12 | /** @test */ |
||
13 | public function it_can_throw_unexpected_type_exception() |
||
17 | } |
||
18 | |||
19 | /** @test */ |
||
20 | public function it_can_throw_invalid_argument_exception() |
||
21 | { |
||
22 | $this->expectException(InvalidArgument::class); |
||
23 | throw new InvalidArgument(); |
||
24 | } |
||
25 | |||
26 | /** @test */ |
||
27 | public function it_can_throw_stack_overflow_exception() |
||
28 | { |
||
29 | $this->expectException(StackOverflow::class); |
||
30 | throw new StackOverflow(); |
||
31 | } |
||
32 | |||
33 | /** @test */ |
||
34 | public function it_can_throw_stack_underflow_exception() |
||
38 | } |
||
39 | } |