Behat\RestTestingExtension\RestTestingHelper::getMethod PHP Method

getMethod() public static method

A helper method for testing protected/private static/non-static methods.
public static getMethod ( string $className, string $methodName ) : ReflectionMethod
$className string
$methodName string
return ReflectionMethod
    public static function getMethod($className, $methodName)
    {
        $class = new \ReflectionClass($className);
        $method = $class->getMethod($methodName);
        $method->setAccessible(true);
        return $method;
    }