Annotation of embedaddon/php/ext/reflection/tests/ReflectionClass_getName_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: ReflectionClass::getName() - invalid params
3: --FILE--
4: <?php
5:
6: $r1 = new ReflectionClass("stdClass");
7:
8: var_dump($r1->getName('X'));
9: var_dump($r1->getName('X', true));
10: ?>
11: --EXPECTF--
12: Warning: ReflectionClass::getName() expects exactly 0 parameters, 1 given in %s on line %d
13: NULL
14:
15: Warning: ReflectionClass::getName() expects exactly 0 parameters, 2 given in %s on line %d
16: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>