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