Annotation of embedaddon/php/ext/reflection/tests/ReflectionClass_getConstants_error.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ReflectionClass::getConstants()
! 3: --FILE--
! 4: <?php
! 5: class X {
! 6: }
! 7:
! 8: $rc = new reflectionClass('X');
! 9:
! 10: //Test invalid arguments
! 11: $rc->getConstants('X');
! 12: $rc->getConstants(true);
! 13: $rc->getConstants(null);
! 14: $rc->getConstants('A', 'B');
! 15:
! 16: ?>
! 17: --EXPECTF--
! 18: Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d
! 19:
! 20: Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d
! 21:
! 22: Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d
! 23:
! 24: Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 2 given in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>