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
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php