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

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

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