bug64239_1.phpt 376 B

1234567891011121314151617181920212223242526272829
  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. class B extends A {
  9. }
  10. trait T2 {
  11. public function t2method() {
  12. }
  13. }
  14. print_r(get_class_methods("A"));
  15. print_r(get_class_methods("B"));
  16. ?>
  17. --EXPECT--
  18. Array
  19. (
  20. [0] => Bmethod
  21. [1] => t2method
  22. )
  23. Array
  24. (
  25. [0] => Bmethod
  26. [1] => t2method
  27. )