Annotation of embedaddon/php/ext/reflection/tests/ReflectionClass_modifiers_002.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Modifiers - wrong param count
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->isFinal('X'));
11: var_dump($rc->isInterface(null));
12: var_dump($rc->isAbstract(true));
13: var_dump($rc->getModifiers(array(1,2,3)));
14:
15: ?>
16: --EXPECTF--
17: Warning: ReflectionClass::isFinal() expects exactly 0 parameters, 1 given in %s on line %d
18: NULL
19:
20: Warning: ReflectionClass::isInterface() expects exactly 0 parameters, 1 given in %s on line %d
21: NULL
22:
23: Warning: ReflectionClass::isAbstract() expects exactly 0 parameters, 1 given in %s on line %d
24: NULL
25:
26: Warning: ReflectionClass::getModifiers() expects exactly 0 parameters, 1 given in %s on line %d
27: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>