From: Christoph M. Becker Date: Fri, 27 Sep 2019 14:31:49 +0000 (+0200) Subject: Fix test regarding Reflection::export() deprecation X-Git-Tag: php-7.4.0RC3~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3204d7e0d1c14dd959e68aa5f909697af404e8d3;p=php Fix test regarding Reflection::export() deprecation --- diff --git a/ext/snmp/tests/reflection.phpt b/ext/snmp/tests/reflection.phpt index 11938f355f..7943dcf5be 100644 --- a/ext/snmp/tests/reflection.phpt +++ b/ext/snmp/tests/reflection.phpt @@ -7,15 +7,15 @@ Test SNMP Reflection /* ALL PHP_ME user callable methods of SNMP class should appear here */ -reflection::export(new reflectionmethod('snmp', '__construct')); -reflection::export(new reflectionmethod('snmp', 'close')); -reflection::export(new reflectionmethod('snmp', 'setSecurity')); -reflection::export(new reflectionmethod('snmp', 'get')); -reflection::export(new reflectionmethod('snmp', 'getnext')); -reflection::export(new reflectionmethod('snmp', 'walk')); -reflection::export(new reflectionmethod('snmp', 'set')); -reflection::export(new reflectionmethod('snmp', 'getErrno')); -reflection::export(new reflectionmethod('snmp', 'getError')); +echo new reflectionmethod('snmp', '__construct'); +echo new reflectionmethod('snmp', 'close'); +echo new reflectionmethod('snmp', 'setSecurity'); +echo new reflectionmethod('snmp', 'get'); +echo new reflectionmethod('snmp', 'getnext'); +echo new reflectionmethod('snmp', 'walk'); +echo new reflectionmethod('snmp', 'set'); +echo new reflectionmethod('snmp', 'getErrno'); +echo new reflectionmethod('snmp', 'getError'); ?> @@ -32,13 +32,11 @@ Method [ public method __construct ] { Parameter #4 [ $retries ] } } - Method [ public method close ] { - Parameters [0] { } } - Method [ public method setSecurity ] { - Parameters [7] { @@ -51,7 +49,6 @@ Method [ public method setSecurity ] { Parameter #6 [ $contextEngineID ] } } - Method [ public method get ] { - Parameters [2] { @@ -59,7 +56,6 @@ Method [ public method get ] { Parameter #1 [ $use_orignames ] } } - Method [ public method getnext ] { - Parameters [2] { @@ -67,7 +63,6 @@ Method [ public method getnext ] { Parameter #1 [ $use_orignames ] } } - Method [ public method walk ] { - Parameters [4] { @@ -77,7 +72,6 @@ Method [ public method walk ] { Parameter #3 [ $non_repeaters ] } } - Method [ public method set ] { - Parameters [3] { @@ -86,17 +80,14 @@ Method [ public method set ] { Parameter #2 [ $value ] } } - Method [ public method getErrno ] { - Parameters [0] { } } - Method [ public method getError ] { - Parameters [0] { } } - ===DONE===