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\NodeInterface;
15 use Behat\Testwork\EventDispatcher\Event\LifecycleEvent;
18 * Represents a feature event.
20 * @author Konstantin Kudryashov <ever.zet@gmail.com>
22 abstract class FeatureTested extends LifecycleEvent implements GherkinNodeTested
24 const BEFORE = 'tester.feature_tested.before';
25 const AFTER_SETUP = 'tester.feature_tested.after_setup';
26 const BEFORE_TEARDOWN = 'tester.feature_tested.before_teardown';
27 const AFTER = 'tester.feature_tested.after';
34 abstract public function getFeature();
39 * @return NodeInterface
41 final public function getNode()
43 return $this->getFeature();