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