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