diff options
Diffstat (limited to 'Zend/tests/exception_handler_006.phpt')
-rw-r--r-- | Zend/tests/exception_handler_006.phpt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Zend/tests/exception_handler_006.phpt b/Zend/tests/exception_handler_006.phpt new file mode 100644 index 0000000..05a5d92 --- /dev/null +++ b/Zend/tests/exception_handler_006.phpt @@ -0,0 +1,25 @@ +--TEST-- +exception handler tests - 6 +--FILE-- +<?php + +set_exception_handler("foo"); +set_exception_handler("foo1"); + +restore_exception_handler(); + +function foo($e) { + var_dump(__FUNCTION__."(): ".get_class($e)." thrown!"); +} + +function foo1($e) { + var_dump(__FUNCTION__."(): ".get_class($e)." thrown!"); +} + + +throw new excEption(); + +echo "Done\n"; +?> +--EXPECTF-- +string(24) "foo(): Exception thrown!" |