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