Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / EventDispatcher / Event / AfterOutlineTested.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\OutlineNode;
15 use Behat\Testwork\Environment\Environment;
16 use Behat\Testwork\EventDispatcher\Event\AfterTested;
17 use Behat\Testwork\Tester\Result\TestResult;
18 use Behat\Testwork\Tester\Setup\Teardown;
19
20 /**
21  * Represents an event after outline was tested.
22  *
23  * @author Konstantin Kudryashov <ever.zet@gmail.com>
24  */
25 final class AfterOutlineTested extends OutlineTested implements AfterTested
26 {
27     /**
28      * @var FeatureNode
29      */
30     private $feature;
31     /**
32      * @var OutlineNode
33      */
34     private $outline;
35     /**
36      * @var TestResult
37      */
38     private $result;
39     /**
40      * @var Teardown
41      */
42     private $teardown;
43
44     /**
45      * Initializes event.
46      *
47      * @param Environment $env
48      * @param FeatureNode $feature
49      * @param OutlineNode $outline
50      * @param TestResult  $result
51      * @param Teardown    $teardown
52      */
53     public function __construct(
54         Environment $env,
55         FeatureNode $feature,
56         OutlineNode $outline,
57         TestResult $result,
58         Teardown $teardown
59     ) {
60         parent::__construct($env);
61
62         $this->feature = $feature;
63         $this->outline = $outline;
64         $this->result = $result;
65         $this->teardown = $teardown;
66     }
67
68     /**
69      * Returns feature.
70      *
71      * @return FeatureNode
72      */
73     public function getFeature()
74     {
75         return $this->feature;
76     }
77
78     /**
79      * Returns outline node.
80      *
81      * @return OutlineNode
82      */
83     public function getOutline()
84     {
85         return $this->outline;
86     }
87
88     /**
89      * Returns current test result.
90      *
91      * @return TestResult
92      */
93     public function getTestResult()
94     {
95         return $this->result;
96     }
97
98     /**
99      * Returns current test teardown.
100      *
101      * @return Teardown
102      */
103     public function getTeardown()
104     {
105         return $this->teardown;
106     }
107 }