| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 50 | public function can_re_enable_catching_exceptions(): void |
||
| 51 | { |
||
| 52 | $browser = $this->browser(); |
||
| 53 | |||
| 54 | try { |
||
| 55 | $browser->throwExceptions()->visit('/exception'); |
||
| 56 | } catch (\Exception $e) { |
||
| 57 | $browser |
||
| 58 | ->catchExceptions() |
||
| 59 | ->visit('/exception') |
||
| 60 | ->assertStatus(500) |
||
| 61 | ; |
||
| 62 | |||
| 63 | return; |
||
| 64 | } |
||
| 65 | |||
| 66 | $this->fail('Exception was not caught.'); |
||
| 67 | } |
||
| 88 |