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