cvs: php-src /ext/reflection/tests bug36308.phpt
| From: | Ilia Alshanetsky | Date: | Thu, 09 Feb 2006 18:18:42 +0000 |
| Subject: | cvs: php-src /ext/reflection/tests bug36308.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-36840@lists.php.net to get a copy of this message | ||
iliaa Thu Feb 9 18:18:42 2006 UTC
Modified files:
/php-src/ext/reflection/tests bug36308.phpt
Log:
MFB51: Added test for bug #36308
http://cvs.php.net/viewcvs.cgi/php-src/ext/reflection/tests/bug36308.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/reflection/tests/bug36308.phpt
diff -u /dev/null php-src/ext/reflection/tests/bug36308.phpt:1.2
--- /dev/null Thu Feb 9 18:18:42 2006
+++ php-src/ext/reflection/tests/bug36308.phpt Thu Feb 9 18:18:42 2006
@@ -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