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

1.1       misho       1: --TEST--
                      2: ReflectionObject::getConstants() - invalid params
                      3: --FILE--
                      4: <?php
                      5: class X {
                      6: }
                      7: 
                      8: $rc = new ReflectionObject(new X);
                      9: 
                     10: $rc->getConstants('X');
                     11: $rc->getConstants(true);
                     12: 
                     13: ?>
                     14: --EXPECTF--
                     15: Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d
                     16: 
                     17: Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d

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