]> granicus.if.org Git - php/commitdiff
Fix test regarding Reflection::export() deprecation
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 27 Sep 2019 14:31:49 +0000 (16:31 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 27 Sep 2019 14:33:53 +0000 (16:33 +0200)
ext/snmp/tests/reflection.phpt

index 11938f355f459d6e21481d524cab74197bcaedc9..7943dcf5be435b4e7c3234d06fd6a2ec7ade4862 100644 (file)
@@ -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 [ <internal:snmp, ctor> public method __construct ] {
     Parameter #4 [ <optional> $retries ]
   }
 }
-
 Method [ <internal:snmp> public method close ] {
 
   - Parameters [0] {
   }
 }
-
 Method [ <internal:snmp> public method setSecurity ] {
 
   - Parameters [7] {
@@ -51,7 +49,6 @@ Method [ <internal:snmp> public method setSecurity ] {
     Parameter #6 [ <required> $contextEngineID ]
   }
 }
-
 Method [ <internal:snmp> public method get ] {
 
   - Parameters [2] {
@@ -59,7 +56,6 @@ Method [ <internal:snmp> public method get ] {
     Parameter #1 [ <optional> $use_orignames ]
   }
 }
-
 Method [ <internal:snmp> public method getnext ] {
 
   - Parameters [2] {
@@ -67,7 +63,6 @@ Method [ <internal:snmp> public method getnext ] {
     Parameter #1 [ <optional> $use_orignames ]
   }
 }
-
 Method [ <internal:snmp> public method walk ] {
 
   - Parameters [4] {
@@ -77,7 +72,6 @@ Method [ <internal:snmp> public method walk ] {
     Parameter #3 [ <required> $non_repeaters ]
   }
 }
-
 Method [ <internal:snmp> public method set ] {
 
   - Parameters [3] {
@@ -86,17 +80,14 @@ Method [ <internal:snmp> public method set ] {
     Parameter #2 [ <required> $value ]
   }
 }
-
 Method [ <internal:snmp> public method getErrno ] {
 
   - Parameters [0] {
   }
 }
-
 Method [ <internal:snmp> public method getError ] {
 
   - Parameters [0] {
   }
 }
-
 ===DONE===