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\EventDispatcher\Event\LifecycleEvent;
18 * Represents a step event.
20 * @author Konstantin Kudryashov <ever.zet@gmail.com>
22 abstract class StepTested extends LifecycleEvent implements GherkinNodeTested
24 const BEFORE = 'tester.step_tested.before';
25 const AFTER_SETUP = 'tester.step_tested.after_setup';
26 const BEFORE_TEARDOWN = 'tester.step_tested.before_teardown';
27 const AFTER = 'tester.step_tested.after';
34 abstract public function getFeature();
41 abstract public function getStep();
46 final public function getNode()
48 return $this->getStep();