Skip to content

Commit 3204d7e

Browse files
committed
Fix test regarding Reflection::export() deprecation
1 parent d907111 commit 3204d7e

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

ext/snmp/tests/reflection.phpt

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ Test SNMP Reflection
77

88
/* ALL PHP_ME user callable methods of SNMP class should appear here */
99

10-
reflection::export(new reflectionmethod('snmp', '__construct'));
11-
reflection::export(new reflectionmethod('snmp', 'close'));
12-
reflection::export(new reflectionmethod('snmp', 'setSecurity'));
13-
reflection::export(new reflectionmethod('snmp', 'get'));
14-
reflection::export(new reflectionmethod('snmp', 'getnext'));
15-
reflection::export(new reflectionmethod('snmp', 'walk'));
16-
reflection::export(new reflectionmethod('snmp', 'set'));
17-
reflection::export(new reflectionmethod('snmp', 'getErrno'));
18-
reflection::export(new reflectionmethod('snmp', 'getError'));
10+
echo new reflectionmethod('snmp', '__construct');
11+
echo new reflectionmethod('snmp', 'close');
12+
echo new reflectionmethod('snmp', 'setSecurity');
13+
echo new reflectionmethod('snmp', 'get');
14+
echo new reflectionmethod('snmp', 'getnext');
15+
echo new reflectionmethod('snmp', 'walk');
16+
echo new reflectionmethod('snmp', 'set');
17+
echo new reflectionmethod('snmp', 'getErrno');
18+
echo new reflectionmethod('snmp', 'getError');
1919

2020

2121
?>
@@ -32,13 +32,11 @@ Method [ <internal:snmp, ctor> public method __construct ] {
3232
Parameter #4 [ <optional> $retries ]
3333
}
3434
}
35-
3635
Method [ <internal:snmp> public method close ] {
3736

3837
- Parameters [0] {
3938
}
4039
}
41-
4240
Method [ <internal:snmp> public method setSecurity ] {
4341

4442
- Parameters [7] {
@@ -51,23 +49,20 @@ Method [ <internal:snmp> public method setSecurity ] {
5149
Parameter #6 [ <required> $contextEngineID ]
5250
}
5351
}
54-
5552
Method [ <internal:snmp> public method get ] {
5653

5754
- Parameters [2] {
5855
Parameter #0 [ <required> $object_id ]
5956
Parameter #1 [ <optional> $use_orignames ]
6057
}
6158
}
62-
6359
Method [ <internal:snmp> public method getnext ] {
6460

6561
- Parameters [2] {
6662
Parameter #0 [ <required> $object_id ]
6763
Parameter #1 [ <optional> $use_orignames ]
6864
}
6965
}
70-
7166
Method [ <internal:snmp> public method walk ] {
7267

7368
- Parameters [4] {
@@ -77,7 +72,6 @@ Method [ <internal:snmp> public method walk ] {
7772
Parameter #3 [ <required> $non_repeaters ]
7873
}
7974
}
80-
8175
Method [ <internal:snmp> public method set ] {
8276

8377
- Parameters [3] {
@@ -86,17 +80,14 @@ Method [ <internal:snmp> public method set ] {
8680
Parameter #2 [ <required> $value ]
8781
}
8882
}
89-
9083
Method [ <internal:snmp> public method getErrno ] {
9184

9285
- Parameters [0] {
9386
}
9487
}
95-
9688
Method [ <internal:snmp> public method getError ] {
9789

9890
- Parameters [0] {
9991
}
10092
}
101-
10293
===DONE===

0 commit comments

Comments
 (0)