Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / EventDispatcher / Event / StepTested.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\StepNode;
15 use Behat\Testwork\EventDispatcher\Event\LifecycleEvent;
16
17 /**
18  * Represents a step event.
19  *
20  * @author Konstantin Kudryashov <ever.zet@gmail.com>
21  */
22 abstract class StepTested extends LifecycleEvent implements GherkinNodeTested
23 {
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';
28
29     /**
30      * Returns feature.
31      *
32      * @return FeatureNode
33      */
34     abstract public function getFeature();
35
36     /**
37      * Returns step node.
38      *
39      * @return StepNode
40      */
41     abstract public function getStep();
42
43     /**
44      * {@inheritdoc}
45      */
46     final public function getNode()
47     {
48         return $this->getStep();
49     }
50 }