mirror of
https://github.com/php/php-src.git
synced 2026-03-26 01:02:25 +01:00
Added test for bug #36308
This commit is contained in:
20
ext/reflection/tests/bug36308.phpt
Executable file
20
ext/reflection/tests/bug36308.phpt
Executable file
@@ -0,0 +1,20 @@
|
||||
--TEST--
|
||||
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 */
|
||||
Reference in New Issue
Block a user