summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug36308.phpt
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2006-04-26 11:08:11 +0000
committerSVN Migration <svn@php.net>2006-04-26 11:08:11 +0000
commit79f14997b447f5917f16138d00d9877f1eeabae0 (patch)
treeaac481f9ab3d2192e236780a3c2b5b7fe18e3144 /ext/reflection/tests/bug36308.phpt
parentad1bbaca04a802350884c07e2899a240d1a04e28 (diff)
downloadphp-git-php-5.1.2.tar.gz
This commit was manufactured by cvs2svn to create tag 'php_5_1_2'.php-5.1.2
Diffstat (limited to 'ext/reflection/tests/bug36308.phpt')
-rwxr-xr-xext/reflection/tests/bug36308.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/reflection/tests/bug36308.phpt b/ext/reflection/tests/bug36308.phpt
new file mode 100755
index 0000000000..52717b474a
--- /dev/null
+++ b/ext/reflection/tests/bug36308.phpt
@@ -0,0 +1,22 @@
+--TEST--
+Reflection Bug #36308 (ReflectionProperty::getDocComment() does not reflect extended class commentary)
+--SKIPIF--
+<?php extension_loaded('reflection') or die('skip'); ?>
+--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