php-src/Zend/tests/exception_handler_003.phpt
Steph Fox 6d8760677d - killed off UEXPECT
- altered EXPECT for parser errors. This may or may not be a Good Thing.
2008-05-26 14:33:44 +00:00

25 lines
311 B
PHP

--TEST--
exception handler tests - 3
--FILE--
<?php
class test {
function foo () {
set_exception_handler(array($this, "bar"));
}
function bar($e) {
var_dump(get_class($e)." thrown!");
}
}
$a = new test;
$a->foo();
throw new Exception();
echo "Done\n";
?>
--EXPECT--
unicode(17) "Exception thrown!"