src/Behat/Behat/Context/Snippet/Generator/ContextSnippetGenerator.php
private function getSnippetTemplate($pattern, $methodName, array $methodArguments)
    {
        return sprintf(
            self::$templateTemplate,
            str_replace('%', '%%', $pattern),
            $methodName,
            implode(', ', $methodArguments)
        );
    }
private function getSnippetTemplate($pattern, $methodName, array $methodArguments)
    {
        return sprintf(
            self::$templateTemplate,
            str_replace('%', '%%', $pattern),
            $methodName,
            implode(', ', $methodArguments)
        );
    }
private function getSnippetTemplate ( $ pattern , $ methodName , array $ methodArguments ) { return sprintf ( self :: $ templateTemplate , str_replace ( '%' , '%%' , $ pattern ) , $ methodName , implode ( ', ' , $ methodArguments ) ) ; }
Generates snippet template using regex, method name and arguments.

@param string   $pattern
@param string   $methodName
@param string[] $methodArguments

@return string
Generates snippet template using regex method name and arguments .