projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c09237f
)
Added test for bug #36308
author
Ilia Alshanetsky
<iliaa@php.net>
Thu, 9 Feb 2006 18:18:18 +0000
(18:18 +0000)
committer
Ilia Alshanetsky
<iliaa@php.net>
Thu, 9 Feb 2006 18:18:18 +0000
(18:18 +0000)
ext/reflection/tests/bug36308.phpt
[new file with mode: 0755]
patch
|
blob
diff --git a/ext/reflection/tests/bug36308.phpt
b/ext/reflection/tests/bug36308.phpt
new file mode 100755
(executable)
index 0000000..
0b0346a
--- /dev/null
+++ b/
ext/reflection/tests/bug36308.phpt
@@ -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 */
\ No newline at end of file