public function hasMethod($name, $inherit = false)
{
return $this->reflection->hasMethod($name);
}
public function testHasMethod() { $reflection = new ReflectionClass(self::TEST_CLASS_NAME); $definition = new RuntimeClassDefinition($reflection); foreach ($reflection->getMethods() as $method) { static::assertTrue($definition->hasMethod($method->getName())); } static::assertFalse($definition->hasMethod('XXXXXXXXXXXXXX')); }