class someClass {
...
private function bar() {
$reflect = new ReflectionFunction('$this->foo');
}
private function foo() {
...
}
}
ReflectionException: Function $this->foo() does not exist in
$reflect = new ReflectionMethod('someClass', 'foo');