Annotation of embedaddon/php/ext/snmp/tests/wrong_hostname.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Wrong hostname
! 3: --CREDITS--
! 4: Boris Lytochkin
! 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: //EXPECTF format is quickprint OFF
! 14: snmp_set_quick_print(false);
! 15: snmp_set_valueretrieval(SNMP_VALUE_PLAIN);
! 16:
! 17: var_dump(snmpget('192.168..6.1', 'community', '.1.3.6.1.2.1.1.1.0', $timeout, $retries));
! 18:
! 19: ?>
! 20: --EXPECTF--
! 21: Warning: snmpget(): php_network_getaddresses:%snot known in %s on line %d
! 22: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>