2008-01-03 09:07:07 +00:00
|
|
|
--TEST--
|
|
|
|
ReflectionMethod::getDocComment() errors
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
class C { function f() {} }
|
|
|
|
$rc = new ReflectionMethod('C::f');
|
|
|
|
var_dump($rc->getDocComment(null));
|
|
|
|
var_dump($rc->getDocComment('X'));
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
2009-01-07 22:40:17 +00:00
|
|
|
Warning: ReflectionFunctionAbstract::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
|
2008-01-03 09:07:07 +00:00
|
|
|
NULL
|
|
|
|
|
2009-01-07 22:40:17 +00:00
|
|
|
Warning: ReflectionFunctionAbstract::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
|
2008-01-03 09:07:07 +00:00
|
|
|
NULL
|