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

1.1       misho       1: --TEST--
                      2: exception handler tests - 4
                      3: --FILE--
                      4: <?php
                      5: 
                      6: set_exception_handler("fo");
                      7: set_exception_handler(array("", ""));
                      8: set_exception_handler();
                      9: set_exception_handler("foo", "bar");
                     10: 
                     11: echo "Done\n";
                     12: ?>
                     13: --EXPECTF--    
                     14: Warning: set_exception_handler() expects the argument (fo) to be a valid callback in %s on line %d
                     15: 
                     16: Warning: set_exception_handler() expects the argument (::) to be a valid callback in %s on line %d
                     17: 
                     18: Warning: set_exception_handler() expects exactly 1 parameter, 0 given in %s on line %d
                     19: 
                     20: Warning: set_exception_handler() expects exactly 1 parameter, 2 given in %s on line %d
                     21: Done

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