php-src/Zend/tests/exception_handler_001.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

21 lines
252 B
PHP

--TEST--
exception handler tests - 1
--FILE--
<?php
set_exception_handler("foo");
function foo($e) {
var_dump(get_class($e)." thrown!");
}
class test extends Exception {
}
throw new test();
echo "Done\n";
?>
--EXPECT--
string(12) "test thrown!"