We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 243c67a + a37fb9a commit 2baac73Copy full SHA for 2baac73
tests/mock/event_dispatcher.php
@@ -25,10 +25,11 @@ public function __construct()
25
public function trigger_event($eventName, $data = array()): array
26
{
27
$data = (array) $data;
28
-
+
29
+ // Throw an exception if we reach the core's exit_handler()
30
if ($eventName === 'core.exit_handler')
31
- $data['exit_handler_override'] = true;
32
+ throw new \RuntimeException('Exit handler called');
33
}
34
35
return $data;
0 commit comments