1--TEST-- 2Test SNMP Reflection 3--SKIPIF-- 4<?php if (!extension_loaded('snmp')) die ("skip no snmp extension"); ?> 5--FILE-- 6<?php 7 8/* ALL PHP_ME user callable methods of SNMP class should appear here */ 9 10echo new reflectionmethod('snmp', '__construct'); 11echo new reflectionmethod('snmp', 'close'); 12echo new reflectionmethod('snmp', 'setSecurity'); 13echo new reflectionmethod('snmp', 'get'); 14echo new reflectionmethod('snmp', 'getnext'); 15echo new reflectionmethod('snmp', 'walk'); 16echo new reflectionmethod('snmp', 'set'); 17echo new reflectionmethod('snmp', 'getErrno'); 18echo new reflectionmethod('snmp', 'getError'); 19 20 21?> 22===DONE=== 23<?php exit(0); ?> 24--EXPECT-- 25Method [ <internal:snmp, ctor> public method __construct ] { 26 27 - Parameters [5] { 28 Parameter #0 [ <required> $version ] 29 Parameter #1 [ <required> $host ] 30 Parameter #2 [ <required> $community ] 31 Parameter #3 [ <optional> $timeout ] 32 Parameter #4 [ <optional> $retries ] 33 } 34} 35Method [ <internal:snmp> public method close ] { 36 37 - Parameters [0] { 38 } 39} 40Method [ <internal:snmp> public method setSecurity ] { 41 42 - Parameters [7] { 43 Parameter #0 [ <required> $sec_level ] 44 Parameter #1 [ <required> $auth_protocol ] 45 Parameter #2 [ <required> $auth_passphrase ] 46 Parameter #3 [ <required> $priv_protocol ] 47 Parameter #4 [ <required> $priv_passphrase ] 48 Parameter #5 [ <required> $contextName ] 49 Parameter #6 [ <required> $contextEngineID ] 50 } 51} 52Method [ <internal:snmp> public method get ] { 53 54 - Parameters [2] { 55 Parameter #0 [ <required> $object_id ] 56 Parameter #1 [ <optional> $use_orignames ] 57 } 58} 59Method [ <internal:snmp> public method getnext ] { 60 61 - Parameters [2] { 62 Parameter #0 [ <required> $object_id ] 63 Parameter #1 [ <optional> $use_orignames ] 64 } 65} 66Method [ <internal:snmp> public method walk ] { 67 68 - Parameters [4] { 69 Parameter #0 [ <required> $object_id ] 70 Parameter #1 [ <required> $suffix_keys ] 71 Parameter #2 [ <required> $max_repetitions ] 72 Parameter #3 [ <required> $non_repeaters ] 73 } 74} 75Method [ <internal:snmp> public method set ] { 76 77 - Parameters [3] { 78 Parameter #0 [ <required> $object_id ] 79 Parameter #1 [ <required> $type ] 80 Parameter #2 [ <required> $value ] 81 } 82} 83Method [ <internal:snmp> public method getErrno ] { 84 85 - Parameters [0] { 86 } 87} 88Method [ <internal:snmp> public method getError ] { 89 90 - Parameters [0] { 91 } 92} 93===DONE=== 94