Annotation of embedaddon/php/ext/reflection/tests/ReflectionObject_isInstantiable_error.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: ReflectionObject::IsInstantiable() - invalid params
                      3: --FILE--
                      4: <?php
                      5: class privateCtorOld {
                      6:        private function privateCtorOld() {}
                      7:        public static function reflectionObjectFactory() {
                      8:                return new ReflectionObject(new self);
                      9:        }       
                     10: }
                     11: $reflectionObject =  privateCtorOld::reflectionObjectFactory();
                     12: 
                     13: var_dump($reflectionObject->IsInstantiable('X'));
                     14: var_dump($reflectionObject->IsInstantiable(0, null));
                     15: 
                     16: ?>
                     17: --EXPECTF--
                     18: Warning: ReflectionClass::isInstantiable() expects exactly 0 parameters, 1 given in %s on line %d
                     19: NULL
                     20: 
                     21: Warning: ReflectionClass::isInstantiable() expects exactly 0 parameters, 2 given in %s on line %d
                     22: NULL

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>