@@ -298,6 +298,46 @@ public function setupOnce(): void
298
298
ModulesIntegration::class => new ModulesIntegration (),
299
299
],
300
300
];
301
+
302
+ yield 'Default integrations and no error handler integrations ' => [
303
+ new Options ([
304
+ 'dsn ' => 'http://public@example.com/sentry/1 ' ,
305
+ 'default_integrations ' => true ,
306
+ 'error_handler_integrations ' => false ,
307
+ ]),
308
+ [
309
+ 'The "Sentry \\Integration \\RequestIntegration" integration has been installed. ' ,
310
+ 'The "Sentry \\Integration \\TransactionIntegration" integration has been installed. ' ,
311
+ 'The "Sentry \\Integration \\FrameContextifierIntegration" integration has been installed. ' ,
312
+ 'The "Sentry \\Integration \\EnvironmentIntegration" integration has been installed. ' ,
313
+ 'The "Sentry \\Integration \\ModulesIntegration" integration has been installed. ' ,
314
+ ],
315
+ [
316
+ RequestIntegration::class => new RequestIntegration (),
317
+ TransactionIntegration::class => new TransactionIntegration (),
318
+ FrameContextifierIntegration::class => new FrameContextifierIntegration (),
319
+ EnvironmentIntegration::class => new EnvironmentIntegration (),
320
+ ModulesIntegration::class => new ModulesIntegration (),
321
+ ],
322
+ ];
323
+
324
+ yield 'No default integrations and error handler integrations ' => [
325
+ new Options ([
326
+ 'dsn ' => 'http://public@example.com/sentry/1 ' ,
327
+ 'default_integrations ' => false ,
328
+ 'error_handler_integrations ' => true ,
329
+ ]),
330
+ [
331
+ 'The "Sentry \\Integration \\ExceptionListenerIntegration" integration has been installed. ' ,
332
+ 'The "Sentry \\Integration \\ErrorListenerIntegration" integration has been installed. ' ,
333
+ 'The "Sentry \\Integration \\FatalErrorListenerIntegration" integration has been installed. ' ,
334
+ ],
335
+ [
336
+ ExceptionListenerIntegration::class => new ExceptionListenerIntegration (),
337
+ ErrorListenerIntegration::class => new ErrorListenerIntegration (),
338
+ FatalErrorListenerIntegration::class => new FatalErrorListenerIntegration (),
339
+ ],
340
+ ];
301
341
}
302
342
303
343
/**
0 commit comments