Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / EventDispatcher / Event / AfterFeatureSetup.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\Testwork\Environment\Environment;
15 use Behat\Testwork\EventDispatcher\Event\AfterSetup;
16 use Behat\Testwork\Tester\Setup\Setup;
17
18 /**
19  * Represents an event right after feature is setup for a test.
20  *
21  * @author Konstantin Kudryashov <ever.zet@gmail.com>
22  */
23 final class AfterFeatureSetup extends FeatureTested implements AfterSetup
24 {
25     /**
26      * @var FeatureNode
27      */
28     private $feature;
29     /**
30      * @var Setup
31      */
32     private $setup;
33
34     /**
35      * Initializes event.
36      *
37      * @param Environment $env
38      * @param FeatureNode $feature
39      * @param Setup       $setup
40      */
41     public function __construct(Environment $env, FeatureNode $feature, Setup $setup)
42     {
43         parent::__construct($env);
44
45         $this->feature = $feature;
46         $this->setup = $setup;
47     }
48
49     /**
50      * Returns feature.
51      *
52      * @return FeatureNode
53      */
54     public function getFeature()
55     {
56         return $this->feature;
57     }
58
59     /**
60      * Returns current test setup.
61      *
62      * @return Setup
63      */
64     public function getSetup()
65     {
66         return $this->setup;
67     }
68 }