cvs: php-src /tests/reflection bug30209.phpt
| From: | Marcus Boerger | Date: | Thu, 23 Sep 2004 18:38:35 +0000 |
| Subject: | cvs: php-src /tests/reflection bug30209.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28742@lists.php.net to get a copy of this message | ||
helly Thu Sep 23 14:38:35 2004 EDT
Added files:
/php-src/tests/reflection bug30209.phpt
Log:
Add new test
http://cvs.php.net/co.php/php-src/tests/reflection/bug30209.phpt?r=1.1&p=1
Index: php-src/tests/reflection/bug30209.phpt
+++ php-src/tests/reflection/bug30209.phpt
--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===