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.

15 lines
442 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: ReflectionFunctionAbstract::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
  12. NULL
  13. Warning: ReflectionFunctionAbstract::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
  14. NULL