Annotation of embedaddon/php/ext/snmp/tests/snmp_get_quick_print.phpt, revision 1.1

1.1     ! misho       1: --TEST--                                 
        !             2: Function snmp_get_quick_print / snmp_set_quick_print
        !             3: --CREDITS--
        !             4: Olivier Doucet
        !             5: --SKIPIF--
        !             6: <?php
        !             7: require_once(dirname(__FILE__).'/skipif.inc');
        !             8: ?>
        !             9: --FILE--
        !            10: <?php
        !            11: require_once(dirname(__FILE__).'/snmp_include.inc');
        !            12: 
        !            13: echo "Checking error handling\n";
        !            14: var_dump(snmp_get_quick_print('noarg'));
        !            15: var_dump(snmp_set_quick_print('noarg'));
        !            16: var_dump(snmp_set_quick_print());
        !            17: 
        !            18: echo "Checking working\n";
        !            19: var_dump(snmp_get_quick_print());
        !            20: snmp_set_quick_print(false);
        !            21: var_dump(snmp_get_quick_print());
        !            22: snmp_set_quick_print(true);
        !            23: var_dump(snmp_get_quick_print());
        !            24: 
        !            25: ?>
        !            26: --EXPECTF--
        !            27: Checking error handling
        !            28: 
        !            29: Warning: snmp_get_quick_print() expects exactly 0 parameters, 1 given in %s on line %d
        !            30: NULL
        !            31: 
        !            32: Warning: snmp_set_quick_print() expects parameter 1 to be long, %s given in %s on line %d
        !            33: bool(false)
        !            34: 
        !            35: Warning: snmp_set_quick_print() expects exactly 1 parameter, 0 given in %s on line %d
        !            36: bool(false)
        !            37: Checking working
        !            38: bool(%s)
        !            39: bool(false)
        !            40: bool(true)
        !            41: 

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