Annotation of embedaddon/php/Zend/tests/exception_handler_002.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: exception handler tests - 2
! 3: --FILE--
! 4: <?php
! 5:
! 6: set_exception_handler("foo");
! 7:
! 8: function foo($e) {
! 9: var_dump(get_class($e)." thrown!");
! 10: throw new Exception();
! 11: }
! 12:
! 13: class test extends Exception {
! 14: }
! 15:
! 16: throw new test();
! 17:
! 18: echo "Done\n";
! 19: ?>
! 20: --EXPECTF--
! 21: string(12) "test thrown!"
! 22:
! 23: Fatal error: Uncaught exception 'Exception' in %sexception_handler_002.php:7
! 24: Stack trace:
! 25: #0 [internal function]: foo(Object(test))
! 26: #1 {main}
! 27: thrown in %sexception_handler_002.php on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>