<?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();
?>