Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / EventDispatcher / Event / ScenarioTested.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\Testwork\EventDispatcher\Event\LifecycleEvent;
14
15 /**
16  * Represents a scenario event.
17  *
18  * @author Konstantin Kudryashov <ever.zet@gmail.com>
19  */
20 abstract class ScenarioTested extends LifecycleEvent implements ScenarioLikeTested
21 {
22     const BEFORE = 'tester.scenario_tested.before';
23     const AFTER_SETUP = 'tester.scenario_tested.after_setup';
24     const BEFORE_TEARDOWN = 'tester.scenario_tested.before_teardown';
25     const AFTER = 'tester.scenario_tested.after';
26
27     /**
28      * {@inheritdoc}
29      */
30     final public function getNode()
31     {
32         return $this->getScenario();
33     }
34 }