1 | <?php |
||
27 | final class ScenarioStateHookableScenarioTester implements ScenarioTester |
||
28 | { |
||
29 | /** |
||
30 | * @var HookableScenarioTester |
||
31 | */ |
||
32 | private $decoratedService; |
||
33 | |||
34 | /** |
||
35 | * @var ScenarioTester |
||
36 | */ |
||
37 | private $baseTester; |
||
38 | |||
39 | /** |
||
40 | * @var ScenarioStateHookDispatcher |
||
41 | */ |
||
42 | private $dispatcher; |
||
43 | |||
44 | /** |
||
45 | * @param HookableScenarioTester $decoratedService |
||
46 | * @param ScenarioTester $baseTester |
||
47 | * @param ScenarioStateHookDispatcher $dispatcher |
||
48 | */ |
||
49 | public function __construct(HookableScenarioTester $decoratedService, ScenarioTester $baseTester, ScenarioStateHookDispatcher $dispatcher) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function setUp(Environment $env, FeatureNode $feature, Scenario $scenario, $skip) |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | public function test(Environment $env, FeatureNode $feature, Scenario $scenario, $skip) |
||
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | public function tearDown(Environment $env, FeatureNode $feature, Scenario $scenario, $skip, TestResult $result) |
||
88 | } |
||
89 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: