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\Hook\Scope;
13 use Behat\Testwork\Specification\SpecificationIterator;
14 use Behat\Testwork\Environment\Environment;
15 use Behat\Testwork\Tester\Result\TestResult;
18 * Represents a scope for AfterSuite hook.
20 * @author Konstantin Kudryashov <ever.zet@gmail.com>
22 final class AfterSuiteScope implements SuiteScope, AfterTestScope
29 * @var SpecificationIterator
40 * @param Environment $environment
41 * @param SpecificationIterator $iterator
42 * @param TestResult $result
44 public function __construct(Environment $environment, SpecificationIterator $iterator, TestResult $result)
46 $this->environment = $environment;
47 $this->iterator = $iterator;
48 $this->result = $result;
54 public function getName()
62 public function getSuite()
64 return $this->environment->getSuite();
70 public function getEnvironment()
72 return $this->environment;
78 public function getSpecificationIterator()
80 return $this->iterator;
86 public function getTestResult()