Annotation of embedaddon/php/Zend/tests/exception_handler_006.phpt, revision 1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>