| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 32 | public function can_re_enable_catching_exceptions(): void |
||
| 33 | { |
||
| 34 | $browser = $this->browser(); |
||
| 35 | |||
| 36 | try { |
||
| 37 | $browser->throwExceptions()->visit('/exception'); |
||
| 38 | } catch (\Exception $e) { |
||
| 39 | $browser |
||
| 40 | ->catchExceptions() |
||
| 41 | ->visit('/exception') |
||
| 42 | ->assertStatus(500) |
||
| 43 | ; |
||
| 44 | |||
| 45 | return; |
||
| 46 | } |
||
| 47 | |||
| 48 | $this->fail('Exception was not caught.'); |
||
| 49 | } |
||
| 70 |