blob: d0d51220aab1bc41e3836f6f7b103040139d6ed2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
--TEST--
get_class_methods(): Testing scope
--FILE--
<?php
abstract class X {
public function a() { }
private function b() { }
protected function c() { }
}
class Y extends X {
private function bb() { }
static public function test() {
var_dump(get_class_methods('X'));
var_dump(get_class_methods('Y'));
}
}
var_dump(get_class_methods('X'));
var_dump(get_class_methods('Y'));
Y::test();
?>
--EXPECT--
array(1) {
[0]=>
string(1) "a"
}
array(2) {
[0]=>
string(4) "test"
[1]=>
string(1) "a"
}
array(2) {
[0]=>
string(1) "a"
[1]=>
string(1) "c"
}
array(4) {
[0]=>
string(2) "bb"
[1]=>
string(4) "test"
[2]=>
string(1) "a"
[3]=>
string(1) "c"
}
|