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\BackgroundNode;
14 use Behat\Gherkin\Node\FeatureNode;
15 use Behat\Gherkin\Node\ScenarioInterface;
16 use Behat\Testwork\Environment\Environment;
17 use Behat\Testwork\EventDispatcher\Event\AfterSetup;
18 use Behat\Testwork\Tester\Setup\Setup;
21 * Represents an event right after background was setup for testing.
23 * @author Konstantin Kudryashov <ever.zet@gmail.com>
25 final class AfterBackgroundSetup extends BackgroundTested implements AfterSetup
43 * @param Environment $env
44 * @param FeatureNode $feature
45 * @param BackgroundNode $background
48 public function __construct(Environment $env, FeatureNode $feature, BackgroundNode $background, Setup $setup)
50 parent::__construct($env);
52 $this->feature = $feature;
53 $this->background = $background;
54 $this->setup = $setup;
62 public function getFeature()
64 return $this->feature;
68 * Returns scenario node.
70 * @return ScenarioInterface
72 public function getScenario()
74 return $this->background;
78 * Returns background node.
80 * @return BackgroundNode
82 public function getBackground()
84 return $this->background;
88 * Returns current test setup.
92 public function getSetup()