php-src/Zend/tests/bug50174.phpt

32 lines
432 B
Plaintext
Raw Normal View History

--TEST--
Bug #50174 (Incorrectly matched docComment)
--FILE--
<?php
class TestClass
{
2020-02-03 21:52:20 +00:00
/** const comment */
const C = 0;
2020-02-03 21:52:20 +00:00
function x() {}
}
$rm = new ReflectionMethod('TestClass', 'x');
var_dump($rm->getDocComment());
class TestClass2
{
2020-02-03 21:52:20 +00:00
/** const comment */
const C = 0;
2020-02-03 21:52:20 +00:00
public $x;
}
$rp = new ReflectionProperty('TestClass2', 'x');
var_dump($rp->getDocComment());
?>
--EXPECT--
bool(false)
bool(false)