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

1.1       misho       1: --TEST--
                      2: Test ReflectionProperty::getDocComment() errors.
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class C {
                      7:     public $a;
                      8: }
                      9: 
                     10: $rc = new ReflectionProperty('C', 'a');
                     11: var_dump($rc->getDocComment(null));
                     12: var_dump($rc->getDocComment('X'));
                     13: var_dump($rc->getDocComment(true));
                     14: var_dump($rc->getDocComment(array(1, 2, 3)));
                     15: 
                     16: ?>
                     17: --EXPECTF--
                     18: Warning: ReflectionProperty::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
                     19: NULL
                     20: 
                     21: Warning: ReflectionProperty::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
                     22: NULL
                     23: 
                     24: Warning: ReflectionProperty::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
                     25: NULL
                     26: 
                     27: Warning: ReflectionProperty::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
                     28: NULL

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