@@ 54-65 (lines=12) @@ | ||
51 | /** |
|
52 | * {@inheritdoc} |
|
53 | */ |
|
54 | public function setUp(Environment $env, FeatureNode $feature, Scenario $scenario, $skip) |
|
55 | { |
|
56 | $setup = $this->baseTester->setUp($env, $feature, $scenario, true); |
|
57 | ||
58 | if ($skip) { |
|
59 | return $setup; |
|
60 | } |
|
61 | ||
62 | $hookCallResults = $this->dispatcher->dispatchScopeHooks(new BeforeScenarioScope($env, $feature, $scenario)); |
|
63 | ||
64 | return new HookedSetup($setup, $hookCallResults); |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * {@inheritdoc} |
|
@@ 78-89 (lines=12) @@ | ||
75 | /** |
|
76 | * {@inheritdoc} |
|
77 | */ |
|
78 | public function tearDown(Environment $env, FeatureNode $feature, Scenario $scenario, $skip, TestResult $result) |
|
79 | { |
|
80 | $teardown = $this->baseTester->tearDown($env, $feature, $scenario, true, $result); |
|
81 | ||
82 | if ($skip) { |
|
83 | return $teardown; |
|
84 | } |
|
85 | ||
86 | $hookCallResults = $this->dispatcher->dispatchScopeHooks(new AfterScenarioScope($env, $feature, $scenario, $result)); |
|
87 | ||
88 | return new HookedTeardown($teardown, $hookCallResults); |
|
89 | } |
|
90 | } |
|
91 |