1--TEST--
2Test ReflectionProperty::getDocComment() errors.
3--FILE--
4<?php
5
6class C {
7    public $a;
8}
9
10$rc = new ReflectionProperty('C', 'a');
11var_dump($rc->getDocComment(null));
12var_dump($rc->getDocComment('X'));
13var_dump($rc->getDocComment(true));
14var_dump($rc->getDocComment(array(1, 2, 3)));
15
16?>
17--EXPECTF--
18Warning: ReflectionProperty::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
19NULL
20
21Warning: ReflectionProperty::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
22NULL
23
24Warning: ReflectionProperty::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
25NULL
26
27Warning: ReflectionProperty::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
28NULL
29