Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / EventDispatcher / Event / OutlineTested.php
1 <?php
2
3 /*
4  * This file is part of the Behat.
5  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 namespace Behat\Behat\EventDispatcher\Event;
12
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;
17
18 /**
19  * Represents an outline event.
20  *
21  * @author Konstantin Kudryashov <ever.zet@gmail.com>
22  */
23 abstract class OutlineTested extends LifecycleEvent implements GherkinNodeTested
24 {
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';
29
30     /**
31      * Returns feature.
32      *
33      * @return FeatureNode
34      */
35     abstract public function getFeature();
36
37     /**
38      * Returns outline node.
39      *
40      * @return OutlineNode
41      */
42     abstract public function getOutline();
43
44     /**
45      * Returns node.
46      *
47      * @return NodeInterface
48      */
49     final public function getNode()
50     {
51         return $this->getOutline();
52     }
53 }