Annotation of embedaddon/php/Zend/tests/bug64239_1.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #64239 (get_class_methods() changed behavior)
                      3: --FILE--
                      4: <?php
                      5: class A {
                      6:        use T2 { t2method as Bmethod; }
                      7: }
                      8: 
                      9: class B extends A {
                     10: }
                     11: 
                     12: trait T2 {
                     13:        public function t2method() {
                     14:        }
                     15: }
                     16: print_r(get_class_methods("A"));
                     17: print_r(get_class_methods("B"));
                     18: --EXPECT--
                     19: Array
                     20: (
                     21:     [0] => Bmethod
                     22:     [1] => t2method
                     23: )
                     24: Array
                     25: (
                     26:     [0] => Bmethod
                     27:     [1] => t2method
                     28: )

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>