Annotation of embedaddon/php/ext/standard/tests/general_functions/get_cfg_var_error.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test function get_cfg_var() by calling it more than or less than its expected arguments
                      3: --CREDITS--
                      4: Francesco Fullone ff@ideato.it
                      5: #PHPTestFest Cesena Italia on 2009-06-20
                      6: --INI--
                      7: session.use_cookies=0
                      8: session.serialize_handler=php
                      9: session.save_handler=files
                     10: --FILE--
                     11: <?php
                     12: 
                     13: echo "*** Test by calling method or function with incorrect numbers of arguments ***\n";
                     14: 
                     15: var_dump(get_cfg_var( 'session.use_cookies', 'session.serialize_handler' ) );
                     16: var_dump(get_cfg_var(  ) );
                     17: 
                     18: 
                     19: ?>
                     20: --EXPECTF--
                     21: *** Test by calling method or function with incorrect numbers of arguments ***
                     22: 
                     23: Warning: get_cfg_var() expects exactly 1 parameter, 2 given in %s on line %d
                     24: NULL
                     25: 
                     26: Warning: get_cfg_var() expects exactly 1 parameter, 0 given in %s on line %d
                     27: NULL

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