render($request, new PayoneTransportException('Fehlercode: 1002')); expect($response->getStatusCode())->toBe(403); }); it('does not report PayoneTransportException (no duplicate exception mail)', function (): void { $handler = app(Handler::class); expect($handler->shouldReport(new PayoneTransportException('x')))->toBeFalse(); });