Annotation of embedaddon/php/Zend/tests/exception_handler_005.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: exception handler tests - 5
! 3: --FILE--
! 4: <?php
! 5:
! 6: set_exception_handler("foo");
! 7: set_exception_handler("foo1");
! 8:
! 9: function foo($e) {
! 10: var_dump(__FUNCTION__."(): ".get_class($e)." thrown!");
! 11: }
! 12:
! 13: function foo1($e) {
! 14: var_dump(__FUNCTION__."(): ".get_class($e)." thrown!");
! 15: }
! 16:
! 17:
! 18: throw new excEption();
! 19:
! 20: echo "Done\n";
! 21: ?>
! 22: --EXPECTF--
! 23: string(25) "foo1(): Exception thrown!"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>