--TEST-- The callback given to set_rejection_handler() should not throw an exception or the program should terminate for unhandled rejection --INI-- # suppress legacy PHPUnit 7 warning for Xdebug 3 xdebug.default_enable= --FILE-- --EXPECTF-- Fatal error: Uncaught UnexpectedValueException from unhandled promise rejection handler: This function should never throw in %s:%d Stack trace: #0 %A{main}