Added test for bug #36308
authorIlia Alshanetsky <iliaa@php.net>
Thu, 9 Feb 2006 18:18:18 +0000 (18:18 +0000)
committerIlia 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]

diff --git a/ext/reflection/tests/bug36308.phpt b/ext/reflection/tests/bug36308.phpt
new file mode 100755 (executable)
index 0000000..0b0346a
--- /dev/null
@@ -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