010.phpt 334 B

12345678910111213141516171819
  1. --TEST--
  2. ReflectionMethod::__toString() tests (overridden method)
  3. --FILE--
  4. <?php
  5. class Foo {
  6. function func() {
  7. }
  8. }
  9. class Bar extends Foo {
  10. function func() {
  11. }
  12. }
  13. $m = new ReflectionMethod("Bar::func");
  14. echo $m;
  15. ?>
  16. --EXPECTF--
  17. Method [ <user, overwrites Foo, prototype Foo> public method func ] {
  18. @@ %s010.php 7 - 8
  19. }