Annotation of embedaddon/php/ext/reflection/tests/ReflectionClass_getDocComment_002.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: ReflectionClass::getDocComment() - bad params
3: --CREDITS--
4: Robin Fernandes <robinf@php.net>
5: Steve Seear <stevseea@php.net>
6: --FILE--
7: <?php
8: class C {}
9: $rc = new ReflectionClass('C');
10: var_dump($rc->getDocComment(null));
11: var_dump($rc->getDocComment('X'));
12: var_dump($rc->getDocComment(true));
13: var_dump($rc->getDocComment(array(1,2,3)));
14: ?>
15: --EXPECTF--
16: Warning: ReflectionClass::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
17: NULL
18:
19: Warning: ReflectionClass::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
20: NULL
21:
22: Warning: ReflectionClass::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
23: NULL
24:
25: Warning: ReflectionClass::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
26: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>