bug43200.phpt 738 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --TEST--
  2. Bug #43200 (Interface implementation / inheritance not possible in abstract classes)
  3. --FILE--
  4. <?php
  5. interface a {
  6. function foo();
  7. function bar();
  8. }
  9. interface b {
  10. function foo();
  11. }
  12. abstract class c {
  13. function bar() { }
  14. }
  15. class x extends c implements a, b {
  16. function foo() { }
  17. }
  18. echo new ReflectionClass('x');
  19. ?>
  20. --EXPECTF--
  21. Class [ <user> class x extends c implements a, b ] {
  22. @@ %s 15-17
  23. - Constants [0] {
  24. }
  25. - Static properties [0] {
  26. }
  27. - Static methods [0] {
  28. }
  29. - Properties [0] {
  30. }
  31. - Methods [2] {
  32. Method [ <user, prototype b> public method foo ] {
  33. @@ %s 16 - 16
  34. }
  35. Method [ <user, inherits c, prototype a> public method bar ] {
  36. @@ %s 12 - 12
  37. }
  38. }
  39. }