php-src/ext/reflection/tests/bug30209.phpt

32 lines
465 B
Plaintext
Raw Normal View History

2004-09-24 02:38:34 +08:00
--TEST--
Reflection Bug #30209 (ReflectionClass::getMethod() lowercases attribute)
2004-09-24 02:38:34 +08:00
--FILE--
<?php
class 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===