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;
16 use Behat\Testwork\Tester\Setup\Teardown;
19 * Represents an event in which suite was tested.
21 * @author Konstantin Kudryashov <ever.zet@gmail.com>
23 final class AfterSuiteTested extends SuiteTested implements AfterTested
26 * @var SpecificationIterator
41 * @param Environment $env
42 * @param SpecificationIterator $iterator
43 * @param TestResult $result
44 * @param Teardown $teardown
46 public function __construct(
48 SpecificationIterator $iterator,
52 parent::__construct($env);
54 $this->iterator = $iterator;
55 $this->result = $result;
56 $this->teardown = $teardown;
60 * Returns specification iterator.
62 * @return SpecificationIterator
64 public function getSpecificationIterator()
66 return $this->iterator;
70 * Returns current test result.
74 public function getTestResult()
80 * Returns current test teardown.
84 public function getTeardown()
86 return $this->teardown;