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