/hphp/test/zend/good/Zend/tests/bug64239_1.php

http://github.com/facebook/hiphop-php · PHP · 17 lines · 14 code · 3 blank · 0 comment · 0 complexity · 79520770d48b3916f2b4977b6bd1bef1 MD5 · raw file

  1. <?hh
  2. class A {
  3. use T2 { t2method as Bmethod; }
  4. }
  5. class B extends A {
  6. }
  7. trait T2 {
  8. public function t2method() {
  9. }
  10. }
  11. <<__EntryPoint>> function main(): void {
  12. print_r(get_class_methods("A"));
  13. print_r(get_class_methods("B"));
  14. }