Annotation of embedaddon/php/Zend/tests/exception_handler_001.phpt, revision 1.1.1.1

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

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