php-src/ext/reflection/tests/bug30209.phpt
Marcus Boerger 352d4a6d8c - Prefix test names
- Add missing skipif
2006-03-12 12:11:22 +00:00

38 lines
598 B
PHP
Executable File

--TEST--
Reflection Bug #30209 (ReflectionClass::getMethod() lowercases attribute)
--SKIPIF--
<?php extension_loaded('reflection') or die('skip'); ?>
--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===
--UEXPECTF--
unicode(7) "testBAR"
unicode(7) "testBAR"
===DONE===