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

1.1       misho       1: --TEST--
                      2: ReflectionMethod::getDocComment() errors
                      3: --FILE--
                      4: <?php
                      5: class C { function f() {} }
                      6: $rc = new ReflectionMethod('C::f');
                      7: var_dump($rc->getDocComment(null));
                      8: var_dump($rc->getDocComment('X'));
                      9: ?>
                     10: --EXPECTF--
                     11: Warning: ReflectionFunctionAbstract::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
                     12: NULL
                     13: 
                     14: Warning: ReflectionFunctionAbstract::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
                     15: NULL

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