exception_handler_006.phpt 402 B

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