diff options
Diffstat (limited to 'Zend/tests/exception_handler_005.phpt')
-rw-r--r-- | Zend/tests/exception_handler_005.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/exception_handler_005.phpt b/Zend/tests/exception_handler_005.phpt new file mode 100644 index 0000000..cc99bc6 --- /dev/null +++ b/Zend/tests/exception_handler_005.phpt @@ -0,0 +1,23 @@ +--TEST-- +exception handler tests - 5 +--FILE-- +<?php + +set_exception_handler("foo"); +set_exception_handler("foo1"); + +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(25) "foo1(): Exception thrown!" |