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