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