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\Gherkin\Node\OutlineNode;
16 use Behat\Testwork\EventDispatcher\Event\LifecycleEvent;
19 * Represents an outline event.
21 * @author Konstantin Kudryashov <ever.zet@gmail.com>
23 abstract class OutlineTested extends LifecycleEvent implements GherkinNodeTested
25 const BEFORE = 'tester.outline_tested.before';
26 const AFTER_SETUP = 'tester.outline_tested.after_setup';
27 const BEFORE_TEARDOWN = 'tester.outline_tested.before_teardown';
28 const AFTER = 'tester.outline_tested.after';
35 abstract public function getFeature();
38 * Returns outline node.
42 abstract public function getOutline();
47 * @return NodeInterface
49 final public function getNode()
51 return $this->getOutline();