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