1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 10:03:18 +02:00
Files
archived-php-src/Zend/tests/exception_handler_004.phpt
2020-03-31 16:32:58 +02:00

21 lines
453 B
PHP

--TEST--
exception handler tests - 4
--FILE--
<?php
try {
set_exception_handler("fo");
} catch (\TypeError $e) {
echo $e->getMessage() . \PHP_EOL;
}
try {
set_exception_handler(array("", ""));
} catch (\TypeError $e) {
echo $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
set_exception_handler(): Argument #1 ($exception_handler) must be a valid callback
set_exception_handler(): Argument #1 ($exception_handler) must be a valid callback