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_005.phpt | |
parent | 0d5a13dddafe829bfc1c1ab5c146cf62e0b5c0bf (diff) | |
download | php-git-3000c0be665dfe376a9aa9cb3b3f5a903e1a7b9a.tar.gz |
fix tests, add more
Diffstat (limited to 'Zend/tests/exception_handler_005.phpt')
-rw-r--r-- | Zend/tests/exception_handler_005.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/exception_handler_005.phpt b/Zend/tests/exception_handler_005.phpt new file mode 100644 index 0000000000..cc99bc6230 --- /dev/null +++ b/Zend/tests/exception_handler_005.phpt @@ -0,0 +1,23 @@ +--TEST-- +exception handler tests - 5 +--FILE-- +<?php + +set_exception_handler("foo"); +set_exception_handler("foo1"); + +function foo($e) { + var_dump(__FUNCTION__."(): ".get_class($e)." thrown!"); +} + +function foo1($e) { + var_dump(__FUNCTION__."(): ".get_class($e)." thrown!"); +} + + +throw new excEption(); + +echo "Done\n"; +?> +--EXPECTF-- +string(25) "foo1(): Exception thrown!" |