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;
15 use Behat\Testwork\Tester\Result\TestResult;
18 * Represents an event right before suite teardown.
20 * @author Konstantin Kudryashov <ever.zet@gmail.com>
22 final class BeforeSuiteTeardown extends SuiteTested implements BeforeTeardown
25 * @var SpecificationIterator
36 * @param Environment $env
37 * @param SpecificationIterator $iterator
38 * @param TestResult $result
40 public function __construct(Environment $env, SpecificationIterator $iterator, TestResult $result)
42 parent::__construct($env);
44 $this->iterator = $iterator;
45 $this->result = $result;
49 * Returns specification iterator.
51 * @return SpecificationIterator
53 public function getSpecificationIterator()
55 return $this->iterator;
59 * Returns current test result.
63 public function getTestResult()