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