1--TEST-- 2exception handler tests - 4 3--FILE-- 4<?php 5 6try { 7 set_exception_handler("fo"); 8} catch (\TypeError $e) { 9 echo $e->getMessage() . \PHP_EOL; 10} 11try { 12 set_exception_handler(array("", "")); 13} catch (\TypeError $e) { 14 echo $e->getMessage() . \PHP_EOL; 15} 16 17?> 18--EXPECT-- 19set_exception_handler(): Argument #1 ($callback) must be a valid callback or null, function "fo" not found or invalid function name 20set_exception_handler(): Argument #1 ($callback) must be a valid callback or null, class "" not found 21