public static getOverrideableMethods ( ReflectionClass $class, boolean $publicOnly = false ) | ||
$class | ReflectionClass | |
$publicOnly | boolean |
public function testGetOverridableMethods() { $ref = new \ReflectionClass('gossi\\codegen\\tests\\fixture\\OverridableReflectionTest'); $methods = ReflectionUtils::getOverrideableMethods($ref); $this->assertEquals(4, count($methods)); $methods = array_map(function ($v) { return $v->name; }, $methods); sort($methods); $this->assertEquals(array('a', 'd', 'e', 'h'), $methods); }