Annotation of embedaddon/php/Zend/tests/bug50174.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: Bug #50174 (Incorrectly matched docComment)
3: --SKIPIF--
1.1.1.2 ! misho 4: <?php if (!extension_loaded('reflection') || !extension_loaded('spl')) print "skip SPL and reflection extensions required"; ?>
1.1 misho 5: --FILE--
6: <?php
7:
8: class TestClass
9: {
10: /** const comment */
11: const C = 0;
12:
13: function x() {}
14: }
15:
16: $rm = new ReflectionMethod('TestClass', 'x');
17: var_dump($rm->getDocComment());
18:
19: class TestClass2
20: {
21: /** const comment */
22: const C = 0;
23:
24: public $x;
25: }
26:
27: $rp = new ReflectionProperty('TestClass2', 'x');
28: var_dump($rp->getDocComment());
29:
30: ?>
31: --EXPECT--
32: bool(false)
33: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>