1 | <?php |
||
18 | class ErrorTester implements StepTester |
||
19 | { |
||
20 | private $baseTester; |
||
21 | private $observers; |
||
22 | private $output; |
||
23 | |||
24 | public function __construct( |
||
33 | |||
34 | /** |
||
35 | * Sets up suite for a test. |
||
36 | * |
||
37 | * @param Environment $env |
||
38 | * @param FeatureNode $feature |
||
39 | * @param StepNode $step |
||
40 | * @param bool $skip |
||
41 | * |
||
42 | * @return Setup |
||
43 | */ |
||
44 | public function setUp( |
||
52 | |||
53 | /** |
||
54 | * Tests provided suite specifications. |
||
55 | * |
||
56 | * @param Environment $env |
||
57 | * @param FeatureNode $feature |
||
58 | * @param StepNode $step |
||
59 | * @param bool $skip |
||
60 | * |
||
61 | * @return StepResult |
||
62 | */ |
||
63 | public function test( |
||
96 | |||
97 | /** |
||
98 | * Tears down suite after a test. |
||
99 | * |
||
100 | * @param Environment $env |
||
101 | * @param FeatureNode $feature |
||
102 | * @param StepNode $step |
||
103 | * @param bool $skip |
||
104 | * @param StepResult $result |
||
105 | * |
||
106 | * @return Teardown |
||
107 | */ |
||
108 | public function tearDown( |
||
118 | } |
||
119 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.