4 * This file is part of the Behat.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Behat\Definition\Search;
13 use Behat\Behat\Definition\DefinitionFinder;
14 use Behat\Behat\Definition\SearchResult;
15 use Behat\Gherkin\Node\FeatureNode;
16 use Behat\Gherkin\Node\StepNode;
17 use Behat\Testwork\Environment\Environment;
20 * Searches for a step definition in a specific environment.
22 * @see DefinitionFinder
24 * @author Konstantin Kudryashov <ever.zet@gmail.com>
26 interface SearchEngine
29 * Searches for a step definition.
31 * @param Environment $environment
32 * @param FeatureNode $feature
33 * @param StepNode $step
35 * @return null|SearchResult
37 public function searchDefinition(Environment $environment, FeatureNode $feature, StepNode $step);