1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 18:23:26 +02:00

Add new test

This commit is contained in:
Marcus Boerger
2004-09-23 18:38:34 +00:00
parent e13eb1d6c0
commit c0b62ca36d
+31
View File
@@ -0,0 +1,31 @@
--TEST--
Bug #30209 ()
--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===