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

1.1     ! misho       1: --TEST--                                 
        !             2: Function snmp_set_enum_print
        !             3: --CREDITS--
        !             4: Olivier Doucet
        !             5: --SKIPIF--
        !             6: <?php
        !             7: require_once(dirname(__FILE__).'/skipif.inc');
        !             8: if (!function_exists('snmp_set_enum_print')) die('This function is only available if using NET_SNMP');
        !             9: ?>
        !            10: --FILE--
        !            11: <?php
        !            12: require_once(dirname(__FILE__).'/snmp_include.inc');
        !            13: 
        !            14: echo "Checking error handling\n";
        !            15: var_dump(snmp_set_enum_print());
        !            16: 
        !            17: echo "Checking working\n";
        !            18: var_dump(snmp_set_enum_print(0));
        !            19: var_dump(snmp_set_enum_print(1));
        !            20: ?>
        !            21: --EXPECTF--
        !            22: Checking error handling
        !            23: 
        !            24: Warning: snmp_set_enum_print() expects exactly 1 parameter, 0 given in %s on line %d
        !            25: bool(false)
        !            26: Checking working
        !            27: bool(true)
        !            28: bool(true)

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