You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
420 B

  1. --TEST--
  2. ReflectionMethod::getDocComment() errors
  3. --FILE--
  4. <?php
  5. class C { function f() {} }
  6. $rc = new ReflectionMethod('C::f');
  7. var_dump($rc->getDocComment(null));
  8. var_dump($rc->getDocComment('X'));
  9. ?>
  10. --EXPECTF--
  11. Warning: Wrong parameter count for ReflectionFunctionAbstract::getDocComment() in %s on line %d
  12. NULL
  13. Warning: Wrong parameter count for ReflectionFunctionAbstract::getDocComment() in %s on line %d
  14. NULL