010.phpt 389 B

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