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\Behat\EventDispatcher\Event;
13 use Behat\Gherkin\Node\FeatureNode;
14 use Behat\Gherkin\Node\OutlineNode;
15 use Behat\Testwork\Environment\Environment;
16 use Behat\Testwork\EventDispatcher\Event\AfterTested;
17 use Behat\Testwork\Tester\Result\TestResult;
18 use Behat\Testwork\Tester\Setup\Teardown;
21 * Represents an event after outline was tested.
23 * @author Konstantin Kudryashov <ever.zet@gmail.com>
25 final class AfterOutlineTested extends OutlineTested implements AfterTested
47 * @param Environment $env
48 * @param FeatureNode $feature
49 * @param OutlineNode $outline
50 * @param TestResult $result
51 * @param Teardown $teardown
53 public function __construct(
60 parent::__construct($env);
62 $this->feature = $feature;
63 $this->outline = $outline;
64 $this->result = $result;
65 $this->teardown = $teardown;
73 public function getFeature()
75 return $this->feature;
79 * Returns outline node.
83 public function getOutline()
85 return $this->outline;
89 * Returns current test result.
93 public function getTestResult()
99 * Returns current test teardown.
103 public function getTeardown()
105 return $this->teardown;