File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug50174.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 2 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--TEST--
Bug #50174 (Incorrectly matched docComment)
--SKIPIF--
<?php if (!extension_loaded('reflection') || !extension_loaded('spl')) print "skip"; ?>
--FILE--
<?php

class TestClass
{
	/** const comment */
	const C = 0;

	function x() {}
}

$rm = new ReflectionMethod('TestClass', 'x');
var_dump($rm->getDocComment());

class TestClass2
{
	/** const comment */
	const C = 0;

	public $x;
}

$rp = new ReflectionProperty('TestClass2', 'x');
var_dump($rp->getDocComment());

?>
--EXPECT--
bool(false)
bool(false)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>