diff options
author | Antony Dovgal <tony2001@php.net> | 2007-05-05 21:44:52 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-05-05 21:44:52 +0000 |
commit | 3000c0be665dfe376a9aa9cb3b3f5a903e1a7b9a (patch) | |
tree | 87700fa7794e45e06ba66889f2a67568c1b5fc77 /Zend/tests/exception_handler_002.phpt | |
parent | 0d5a13dddafe829bfc1c1ab5c146cf62e0b5c0bf (diff) | |
download | php-git-3000c0be665dfe376a9aa9cb3b3f5a903e1a7b9a.tar.gz |
fix tests, add more
Diffstat (limited to 'Zend/tests/exception_handler_002.phpt')
-rw-r--r-- | Zend/tests/exception_handler_002.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/exception_handler_002.phpt b/Zend/tests/exception_handler_002.phpt new file mode 100644 index 0000000000..3e0e4f00dd --- /dev/null +++ b/Zend/tests/exception_handler_002.phpt @@ -0,0 +1,23 @@ +--TEST-- +exception handler tests - 2 +--FILE-- +<?php + +set_exception_handler("foo"); + +function foo($e) { + var_dump(get_class($e)." thrown!"); + throw new Exception(); +} + +class test extends Exception { +} + +throw new test(); + +echo "Done\n"; +?> +--EXPECTF-- +string(12) "test thrown!" + +Fatal error: Exception thrown without a stack frame in Unknown on line 0 |