1 | <?php |
||
27 | final class ScenarioStateHookableScenarioTester implements ScenarioTester |
||
28 | { |
||
29 | /** |
||
30 | * @var HookableScenarioTester |
||
31 | */ |
||
32 | private $baseTester; |
||
33 | |||
34 | /** |
||
35 | * @var ScenarioStateHookDispatcher |
||
36 | */ |
||
37 | private $dispatcher; |
||
38 | |||
39 | /** |
||
40 | * @param HookableScenarioTester $baseTester |
||
41 | * @param ScenarioStateHookDispatcher $dispatcher |
||
42 | */ |
||
43 | public function __construct(HookableScenarioTester $baseTester, ScenarioStateHookDispatcher $dispatcher) |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function setUp(Environment $env, FeatureNode $feature, Scenario $scenario, $skip) |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function test(Environment $env, FeatureNode $feature, Scenario $scenario, $skip) |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function tearDown(Environment $env, FeatureNode $feature, Scenario $scenario, $skip, TestResult $result) |
||
81 | } |
||
82 |
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: