1--TEST--
2get_class_methods(): Testing scope
3--FILE--
4<?php
5
6interface I {
7    function aa();
8    function bb();
9    static function cc();
10}
11
12class X {
13    public function a() { }
14    protected function b() { }
15    private function c() { }
16
17    static public function static_a() { }
18    static protected function static_b() { }
19    static private function static_c() { }
20}
21
22class Y extends X implements I {
23    public function aa() { }
24    public function bb() { }
25
26    static function cc() { }
27
28    public function __construct() {
29        var_dump(get_class_methods('I'));
30        var_dump(get_class_methods('Y'));
31        var_dump(get_class_methods('X'));
32    }
33
34    public function __destruct() { }
35}
36
37new Y;
38
39?>
40--EXPECT--
41array(3) {
42  [0]=>
43  string(2) "aa"
44  [1]=>
45  string(2) "bb"
46  [2]=>
47  string(2) "cc"
48}
49array(9) {
50  [0]=>
51  string(2) "aa"
52  [1]=>
53  string(2) "bb"
54  [2]=>
55  string(2) "cc"
56  [3]=>
57  string(11) "__construct"
58  [4]=>
59  string(10) "__destruct"
60  [5]=>
61  string(1) "a"
62  [6]=>
63  string(1) "b"
64  [7]=>
65  string(8) "static_a"
66  [8]=>
67  string(8) "static_b"
68}
69array(4) {
70  [0]=>
71  string(1) "a"
72  [1]=>
73  string(1) "b"
74  [2]=>
75  string(8) "static_a"
76  [3]=>
77  string(8) "static_b"
78}
79