src/Behat/Behat/Context/Snippet/Generator/ContextSnippetGenerator.php
private function getMethodName($contextClass, $canonicalText, $pattern)
    {
        $methodName = $this->deduceMethodName($canonicalText);
        $methodName = $this->getUniqueMethodName($contextClass, $pattern, $methodName);

        return $methodName;
    }
private function getMethodName($contextClass, $canonicalText, $pattern)
    {
        $methodName = $this->deduceMethodName($canonicalText);
        $methodName = $this->getUniqueMethodName($contextClass, $pattern, $methodName);

        return $methodName;
    }
private function getMethodName ( $ contextClass , $ canonicalText , $ pattern ) { $ methodName = $ this -> deduceMethodName ( $ canonicalText ) ; $ methodName = $ this -> getUniqueMethodName ( $ contextClass , $ pattern , $ methodName ) ; return $ methodName ; }
Generates method name using step text and regex.

@param string $contextClass
@param string $canonicalText
@param string $pattern

@return string
Generates method name using step text and regex .