@@ -41,12 +41,12 @@ public function testSetDeprecationHandler()
4141 $ panel = new DeprecationsPanel ();
4242
4343 $ error = new PhpError (E_USER_WARNING , 'ignored ' , __FILE__ , __LINE__ , []);
44- $ event = new Event ('Error.handled ' , null , ['error ' => $ error ]);
44+ $ event = new Event ('Error.beforeRender ' , null , ['error ' => $ error ]);
4545 EventManager::instance ()->dispatch ($ event );
4646
4747 // No file/line in message.
4848 $ error = new PhpError (E_USER_DEPRECATED , 'going away ' , __FILE__ , __LINE__ , []);
49- $ event = new Event ('Error.handled ' , null , ['error ' => $ error ]);
49+ $ event = new Event ('Error.beforeRender ' , null , ['error ' => $ error ]);
5050 EventManager::instance ()->dispatch ($ event );
5151
5252 // Formatted like deprecationWarning()
@@ -57,7 +57,7 @@ public function testSetDeprecationHandler()
5757You can disable all deprecation warnings by setting `Error.errorLevel` to `E_ALL & ~E_USER_DEPRECATED`.
5858TEXT ;
5959 $ error = new PhpError (E_USER_DEPRECATED , $ message , __FILE__ , __LINE__ , []);
60- $ event = new Event ('Error.handled ' , null , ['error ' => $ error ]);
60+ $ event = new Event ('Error.beforeRender ' , null , ['error ' => $ error ]);
6161 EventManager::instance ()->dispatch ($ event );
6262
6363 $ panel ->shutdown ($ event );
0 commit comments