File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug55156.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 1 month ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

    1: --TEST--
    2: Bug #55156 (ReflectionClass::getDocComment() returns comment even though the class has none)
    3: --FILE--
    4: <?php
    5: 
    6: /** test */
    7: namespace foo {
    8: 	function test() { }
    9: 	 
   10: 	$x = new \ReflectionFunction('foo\test');
   11: 	var_dump($x->getDocComment());	
   12: 	
   13: 	/** test1 */
   14: 	class bar { }
   15: 	
   16: 	/** test2 */
   17: 	class foo extends namespace\bar { }
   18: 	
   19: 	$x = new \ReflectionClass('foo\bar');
   20: 	var_dump($x->getDocComment());
   21: 	
   22: 	$x = new \ReflectionClass('foo\foo');
   23: 	var_dump($x->getDocComment());
   24: }
   25: 	
   26: ?>
   27: --EXPECTF--
   28: bool(false)
   29: string(12) "/** test1 */"
   30: string(12) "/** test2 */"

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