src/Behat/Behat/Definition/DefinitionFinder.php
public function findDefinition(Environment $environment, FeatureNode $feature, StepNode $step)
    {
        foreach ($this->engines as $engine) {
            $result = $engine->searchDefinition($environment, $feature, $step);

            if (null !== $result && $result->hasMatch()) {
                return $result;
            }
        }

        return new SearchResult();
    }
public function findDefinition(Environment $environment, FeatureNode $feature, StepNode $step)
    {
        foreach ($this->engines as $engine) {
            $result = $engine->searchDefinition($environment, $feature, $step);

            if (null !== $result && $result->hasMatch()) {
                return $result;
            }
        }

        return new SearchResult();
    }
public function findDefinition ( Environment $ environment , FeatureNode $ feature , StepNode $ step ) { foreach ( $ this -> engines as $ engine ) { $ result = $ engine -> searchDefinition ( $ environment , $ feature , $ step ) ; if ( null !== $ result && $ result -> hasMatch ( ) ) { return $ result ; } } return new SearchResult ( ) ; }
Searches definition for a provided step in a provided environment.

@param Environment $environment
@param FeatureNode $feature
@param StepNode    $step

@return SearchResult
Searches definition for a provided step in a provided environment .