Behat\Behat\Context\Snippet\Generator\ContextSnippetGenerator::getMethodName PHP Method

getMethodName() private method

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