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\StepNode;
15 use Behat\Testwork\Environment\Environment;
16 use Behat\Testwork\EventDispatcher\Event\AfterSetup;
17 use Behat\Testwork\Tester\Setup\Setup;
20 * Represents an event after step setup.
22 * @author Konstantin Kudryashov <ever.zet@gmail.com>
24 final class AfterStepSetup extends StepTested implements AfterSetup
42 * @param Environment $env
43 * @param FeatureNode $feature
44 * @param StepNode $step
47 public function __construct(Environment $env, FeatureNode $feature, StepNode $step, Setup $setup)
49 parent::__construct($env);
51 $this->feature = $feature;
53 $this->setup = $setup;
61 public function getFeature()
63 return $this->feature;
71 public function getStep()
77 * Returns current test setup.
81 public function getSetup()
87 * Checks if step call, setup or teardown produced any output (stdOut or exception).
91 public function hasOutput()
93 return $this->setup->hasOutput();