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\Specification\SpecificationIterator;
14 use Behat\Testwork\Tester\Result\TestResult;
17 * Represents an event right before exercise teardown.
19 * @author Konstantin Kudryashov <ever.zet@gmail.com>
21 final class BeforeExerciseTeardown extends ExerciseCompleted implements BeforeTeardown
24 * @var SpecificationIterator[]
26 private $specificationIterators;
35 * @param SpecificationIterator[] $specificationIterators
36 * @param TestResult $result
38 public function __construct(array $specificationIterators, TestResult $result)
40 $this->specificationIterators = $specificationIterators;
41 $this->result = $result;
45 * Returns specification iterators.
47 * @return SpecificationIterator[]
49 public function getSpecificationIterators()
51 return $this->specificationIterators;
55 * Returns exercise test result.
59 public function getTestResult()