4 * This file is part of the Behat.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Testwork\EventDispatcher\Event;
13 use Behat\Testwork\Environment\Environment;
14 use Behat\Testwork\Specification\SpecificationIterator;
17 * Represents an event in which suite is prepared to be tested.
19 * @author Konstantin Kudryashov <ever.zet@gmail.com>
21 final class BeforeSuiteTested extends SuiteTested implements BeforeTested
24 * @var SpecificationIterator
31 * @param Environment $env
32 * @param SpecificationIterator $iterator
34 public function __construct(Environment $env, SpecificationIterator $iterator)
36 parent::__construct($env);
38 $this->iterator = $iterator;
42 * Returns specification iterator.
44 * @return SpecificationIterator
46 public function getSpecificationIterator()
48 return $this->iterator;