summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-02-09 18:18:18 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-02-09 18:18:18 +0000
commit044d24a23cddc1932a81280e47b84c0b975c8be3 (patch)
tree8d48899d862d4fa37acfef0cdb67e3339e83b469
parentc09237ffce622f2549894d9e0aac712daf45534d (diff)
downloadphp-git-044d24a23cddc1932a81280e47b84c0b975c8be3.tar.gz
Added test for bug #36308
-rwxr-xr-xext/reflection/tests/bug36308.phpt20
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/reflection/tests/bug36308.phpt b/ext/reflection/tests/bug36308.phpt
new file mode 100755
index 0000000000..0b0346a137
--- /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