| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 34 | public function assertMiddlewareThrows($middleware, ?Request $request = null): void  | 
            ||
| 35 |     { | 
            ||
| 36 |         if ($request === null) { | 
            ||
| 37 | $request = new Request();  | 
            ||
| 38 | }  | 
            ||
| 39 | |||
| 40 |         $middleware->handle($request, function () { | 
            ||
| 41 | return new Response();  | 
            ||
| 42 | });  | 
            ||
| 43 | |||
| 44 |         $this->fail('Expected middleware to throw an exception, nothing was thrown'); | 
            ||
| 45 | }  | 
            ||
| 48 |