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

supportsEnvironmentAndStep() public method

public supportsEnvironmentAndStep ( Behat\Testwork\Environment\Environment $environment, Behat\Gherkin\Node\StepNode $step )
$environment Behat\Testwork\Environment\Environment
$step Behat\Gherkin\Node\StepNode
    public function supportsEnvironmentAndStep(Environment $environment, StepNode $step)
    {
        if (!$environment instanceof ContextEnvironment) {
            return false;
        }
        if (!$environment->hasContexts()) {
            return false;
        }
        return null !== $this->contextIdentifier->guessTargetContextClass($environment);
    }