--TEST-- The callback given to set_rejection_handler() should be invoked for unhandled rejection --INI-- # suppress legacy PHPUnit 7 warning for Xdebug 3 xdebug.default_enable= --FILE-- getMessage() . PHP_EOL; }); reject(new RuntimeException('foo')); echo 'done' . PHP_EOL; ?> --EXPECT-- Unhandled RuntimeException: foo done