Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / EventDispatcher / Event / BeforeSuiteTested.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
16 /**
17  * Represents an event in which suite is prepared to be tested.
18  *
19  * @author Konstantin Kudryashov <ever.zet@gmail.com>
20  */
21 final class BeforeSuiteTested extends SuiteTested implements BeforeTested
22 {
23     /**
24      * @var SpecificationIterator
25      */
26     private $iterator;
27
28     /**
29      * Initializes event.
30      *
31      * @param Environment           $env
32      * @param SpecificationIterator $iterator
33      */
34     public function __construct(Environment $env, SpecificationIterator $iterator)
35     {
36         parent::__construct($env);
37
38         $this->iterator = $iterator;
39     }
40
41     /**
42      * Returns specification iterator.
43      *
44      * @return SpecificationIterator
45      */
46     public function getSpecificationIterator()
47     {
48         return $this->iterator;
49     }
50 }