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\EventDispatcher\Event;
13 use Behat\Gherkin\Node\FeatureNode;
14 use Behat\Gherkin\Node\ScenarioLikeInterface as Scenario;
15 use Behat\Gherkin\Node\ScenarioNode;
16 use Behat\Testwork\Environment\Environment;
17 use Behat\Testwork\EventDispatcher\Event\BeforeTested;
20 * Represents an event before scenario is tested.
22 * @author Konstantin Kudryashov <ever.zet@gmail.com>
24 final class BeforeScenarioTested extends ScenarioTested implements BeforeTested
38 * @param Environment $env
39 * @param FeatureNode $feature
40 * @param Scenario $scenario
42 public function __construct(Environment $env, FeatureNode $feature, Scenario $scenario)
44 parent::__construct($env);
46 $this->feature = $feature;
47 $this->scenario = $scenario;
55 public function getFeature()
57 return $this->feature;
61 * Returns scenario node.
63 * @return ScenarioNode
65 public function getScenario()
67 return $this->scenario;