blob: 041d17ef3282ee5eaed2de44543067ab917f09da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--TEST--
ReflectionMethod::getDocComment() errors
--SKIPIF--
<?php extension_loaded('reflection') or die('skip'); ?>
--FILE--
<?php
class C { function f() {} }
$rc = new ReflectionMethod('C::f');
var_dump($rc->getDocComment(null));
var_dump($rc->getDocComment('X'));
?>
--EXPECTF--
Warning: Wrong parameter count for ReflectionFunctionAbstract::getDocComment() in %s on line %d
NULL
Warning: Wrong parameter count for ReflectionFunctionAbstract::getDocComment() in %s on line %d
NULL
|