summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/reflectionProperty_getDocComment_error.phpt
blob: 8c1b68e81f17a3e9d5ee6960ef56dae7b05dc693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--TEST--
Test ReflectionProperty::getDocComment() errors.
--SKIPIF--
<?php extension_loaded('reflection') or die('skip'); ?>
--FILE--
<?php

class C {
    public $a;
}

$rc = new ReflectionProperty('C', 'a');
var_dump($rc->getDocComment(null));
var_dump($rc->getDocComment('X'));
var_dump($rc->getDocComment(true));
var_dump($rc->getDocComment(array(1, 2, 3)));

?>
--EXPECTF--

Warning: Wrong parameter count for ReflectionProperty::getDocComment() in %s on line %d
NULL

Warning: Wrong parameter count for ReflectionProperty::getDocComment() in %s on line %d
NULL

Warning: Wrong parameter count for ReflectionProperty::getDocComment() in %s on line %d
NULL

Warning: Wrong parameter count for ReflectionProperty::getDocComment() in %s on line %d
NULL