abstract_method_7.phpt 368 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Abstract private trait method forwarded as abstract protected method
  3. --FILE--
  4. <?php
  5. trait T {
  6. abstract private function method(int $a, string $b);
  7. }
  8. abstract class C {
  9. use T;
  10. abstract protected function method(int $a, string $b);
  11. }
  12. class D extends C {
  13. protected function method(int $a, string $b) {}
  14. }
  15. ?>
  16. ===DONE===
  17. --EXPECT--
  18. ===DONE===