@@ -53,14 +53,15 @@ public function warnings_notices_and_deprecations_are_processed_without_throwing
5353
5454 $ this ->container ->singleton (ExceptionHandler::class, new TestingExceptionHandler ());
5555 $ this ->container ->singleton (ExceptionProcessor::class, $ processor = new TestingExceptionProcessor ());
56+
5657 $ this ->kernel ->registerExceptionHandler ();
5758
5859 try {
5960 trigger_error ('report warning ' , E_USER_WARNING );
6061 trigger_error ('report deprecation ' , E_USER_DEPRECATED );
6162 trigger_error ('report notice ' , E_USER_NOTICE );
6263 } catch (Throwable $ throwable ) {
63- $ this ->fail (sprintf ('Expected no exception to be thrown, but got %s: %s ' , get_class ( $ throwable) , $ throwable ->getMessage ()));
64+ $ this ->fail (sprintf ('Expected no exception to be thrown, but got %s: %s ' , $ throwable::class , $ throwable ->getMessage ()));
6465 }
6566
6667 $ this ->assertCount (3 , $ processor ->processed );
@@ -91,6 +92,7 @@ public function suppressions_are_not_processed_or_thrown(): void
9192
9293 $ this ->container ->singleton (ExceptionHandler::class, new TestingExceptionHandler ());
9394 $ this ->container ->singleton (ExceptionProcessor::class, $ processor = new TestingExceptionProcessor ());
95+
9496 $ this ->kernel ->registerExceptionHandler ();
9597
9698 @trigger_error ('suppressed warning ' , E_USER_WARNING );
@@ -109,6 +111,7 @@ public function uncaught_exceptions_are_forwarded_to_the_registered_exception_ha
109111
110112 $ this ->container ->singleton (ExceptionHandler::class, $ handler );
111113 $ this ->container ->singleton (ExceptionProcessor::class, new TestingExceptionProcessor ());
114+
112115 $ this ->kernel ->registerExceptionHandler ();
113116
114117 $ kernelExceptionHandler = set_exception_handler (static function (Throwable $ throwable ): void {});
0 commit comments