Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / EventDispatcher / Event / BeforeSuiteTeardown.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\Testwork\EventDispatcher\Event;
12
13 use Behat\Testwork\Environment\Environment;
14 use Behat\Testwork\Specification\SpecificationIterator;
15 use Behat\Testwork\Tester\Result\TestResult;
16
17 /**
18  * Represents an event right before suite teardown.
19  *
20  * @author Konstantin Kudryashov <ever.zet@gmail.com>
21  */
22 final class BeforeSuiteTeardown extends SuiteTested implements BeforeTeardown
23 {
24     /**
25      * @var SpecificationIterator
26      */
27     private $iterator;
28     /**
29      * @var TestResult
30      */
31     private $result;
32
33     /**
34      * Initializes event.
35      *
36      * @param Environment           $env
37      * @param SpecificationIterator $iterator
38      * @param TestResult            $result
39      */
40     public function __construct(Environment $env, SpecificationIterator $iterator, TestResult $result)
41     {
42         parent::__construct($env);
43
44         $this->iterator = $iterator;
45         $this->result = $result;
46     }
47
48     /**
49      * Returns specification iterator.
50      *
51      * @return SpecificationIterator
52      */
53     public function getSpecificationIterator()
54     {
55         return $this->iterator;
56     }
57
58     /**
59      * Returns current test result.
60      *
61      * @return TestResult
62      */
63     public function getTestResult()
64     {
65         return $this->result;
66     }
67 }