bug30209.phpt

来自「PHP v6.0 For Linux 运行环境:Win9X/ WinME/ Wi」· PHPT 代码 · 共 38 行

PHPT
38
字号
--TEST--Reflection Bug #30209 (ReflectionClass::getMethod() lowercases attribute)--SKIPIF--<?php extension_loaded('reflection') or die('skip'); ?>--FILE--<?phpclass Foo{	private $name = 'testBAR';	public function testBAR()	{		try		{			$class  = new ReflectionClass($this);			var_dump($this->name);			$method = $class->getMethod($this->name);			var_dump($this->name);		}		catch (Exception $e) {}	}}$foo = new Foo;$foo->testBAR();?>===DONE===--EXPECTF--string(7) "testBAR"string(7) "testBAR"===DONE===--UEXPECTF--unicode(7) "testBAR"unicode(7) "testBAR"===DONE===

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?