exception_handler_005.phpt 373 B

1234567891011121314151617181920212223
  1. --TEST--
  2. exception handler tests - 5
  3. --FILE--
  4. <?php
  5. set_exception_handler("foo");
  6. set_exception_handler("foo1");
  7. function foo($e) {
  8. var_dump(__FUNCTION__."(): ".get_class($e)." thrown!");
  9. }
  10. function foo1($e) {
  11. var_dump(__FUNCTION__."(): ".get_class($e)." thrown!");
  12. }
  13. throw new excEption();
  14. echo "Done\n";
  15. ?>
  16. --EXPECT--
  17. string(25) "foo1(): Exception thrown!"