1--TEST-- 2public ReflectionMethod ReflectionMethod::getPrototype ( void ); 3--CREDITS-- 4marcosptf - <marcosptf@yahoo.com.br> 5--FILE-- 6<?php 7class Hello { 8 public function sayHelloTo($name) { 9 return 'Hello ' . $name; 10 } 11} 12 13class HelloWorld extends Hello { 14 public function sayHelloTo($name) { 15 return 'Hello world: ' . $name; 16 } 17} 18 19$reflectionMethod = new ReflectionMethod('HelloWorld', 'sayHelloTo'); 20var_dump($reflectionMethod->getPrototype()); 21 22?> 23--EXPECT-- 24object(ReflectionMethod)#2 (2) { 25 ["name"]=> 26 string(10) "sayHelloTo" 27 ["class"]=> 28 string(5) "Hello" 29} 30