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:
Executable
+31
@@ -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===
|
||||
Reference in New Issue
Block a user