Annotation of embedaddon/php/ext/reflection/tests/bug36308.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Reflection Bug #36308 (ReflectionProperty::getDocComment() does not reflect extended class commentary)
! 3: --FILE--
! 4: <?php
! 5: class Base {
! 6: /** Base comment block */
! 7: public $foo = 'bar';
! 8: }
! 9:
! 10: class Extended extends Base {
! 11: /** Extended commentary */
! 12: public $foo = 'zim';
! 13: }
! 14:
! 15: $reflect = new ReflectionClass('Extended');
! 16: $props = $reflect->getProperties();
! 17: echo $props[0]->getDocComment();
! 18: ?>
! 19: --EXPECT--
! 20: /** Extended commentary */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>