--TEST-- Calling cancel() that rejects afterwards should not report unhandled rejection --INI-- # suppress legacy PHPUnit 7 warning for Xdebug 3 xdebug.default_enable= --FILE-- cancel(); assert($reject instanceof \Closure); $reject(new \RuntimeException('Cancelled')); echo 'void' . PHP_EOL; ?> --EXPECT-- void