php-src/ext/reflection/tests/bug36308.phpt
2008-05-24 13:35:03 +00:00

21 lines
441 B
PHP
Executable File

--TEST--
Reflection Bug #36308 (ReflectionProperty::getDocComment() does not reflect extended class commentary)
--FILE--
<?php
class Base {
/** Base comment block */
public $foo = 'bar';
}
class Extended extends Base {
/** Extended commentary */
public $foo = 'zim';
}
$reflect = new ReflectionClass('Extended');
$props = $reflect->getProperties();
echo $props[0]->getDocComment();
?>
--EXPECT--
/** Extended commentary */