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\AfterSetup;
18 use Behat\Testwork\Tester\Setup\Setup;
21 * Represents an event after scenario setup.
23 * @author Konstantin Kudryashov <ever.zet@gmail.com>
25 final class AfterScenarioSetup extends ScenarioTested implements AfterSetup
43 * @param Environment $env
44 * @param FeatureNode $feature
45 * @param Scenario $scenario
48 public function __construct(Environment $env, FeatureNode $feature, Scenario $scenario, Setup $setup)
50 parent::__construct($env);
52 $this->feature = $feature;
53 $this->scenario = $scenario;
54 $this->setup = $setup;
62 public function getFeature()
64 return $this->feature;
68 * Returns scenario node.
70 * @return ScenarioNode
72 public function getScenario()
74 return $this->scenario;
78 * Returns current test setup.
82 public function getSetup()