Gc\Module\AbstractModuleTest::getMethod PHP Method

getMethod() protected method

Retrieve protected method
protected getMethod ( string $name ) : mixed
$name string Name
return mixed
    protected function getMethod($name)
    {
        $class = new ReflectionClass('Gc\\Module\\AbstractModule');
        $method = $class->getMethod($name);
        $method->setAccessible(true);
        return $method;
    }