PageRenderTime 38ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  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. }