Annotation of embedaddon/php/ext/reflection/tests/ReflectionClass_isInstantiable_error.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ReflectionClass::IsInstantiable()
! 3: --FILE--
! 4: <?php
! 5: class privateCtorOld {
! 6: private function privateCtorOld() {}
! 7: }
! 8: $reflectionClass = new ReflectionClass("privateCtorOld");
! 9:
! 10: var_dump($reflectionClass->IsInstantiable('X'));
! 11: var_dump($reflectionClass->IsInstantiable(0, null));
! 12:
! 13: ?>
! 14: --EXPECTF--
! 15: Warning: ReflectionClass::isInstantiable() expects exactly 0 parameters, 1 given in %s on line %d
! 16: NULL
! 17:
! 18: Warning: ReflectionClass::isInstantiable() expects exactly 0 parameters, 2 given in %s on line %d
! 19: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>