--TEST-- The callback given to set_rejection_handler() may trigger a fatal error for unhandled rejection --INI-- # suppress legacy PHPUnit 7 warning for Xdebug 3 xdebug.default_enable= --FILE-- getMessage(), E_USER_ERROR); }); reject(new RuntimeException('foo')); echo 'NEVER'; ?> --EXPECTF-- Fatal error: Unexpected RuntimeException: foo in %s line %d