1 | <?php |
||
16 | class GetFunctionParametersTest extends BaseAbstractClassMethodTest |
||
|
|||
17 | { |
||
18 | |||
19 | public $filename = 'sniff-examples/utility-functions/get_function_parameters.php'; |
||
20 | |||
21 | /** |
||
22 | * testGetFunctionCallParameters |
||
23 | * |
||
24 | * @group utilityFunctions |
||
25 | * |
||
26 | * @dataProvider dataGetFunctionCallParameters |
||
27 | * |
||
28 | * @param int $stackPtr Stack pointer for a T_CLASS token in the test file. |
||
29 | * @param string $expected The expected fully qualified class name. |
||
30 | */ |
||
31 | public function testGetFunctionCallParameters($stackPtr, $expected) |
||
36 | |||
37 | /** |
||
38 | * dataGetFunctionCallParameters |
||
39 | * |
||
40 | * @see testGetFunctionCallParameters() |
||
41 | * |
||
42 | * @return array |
||
43 | */ |
||
44 | public function dataGetFunctionCallParameters() |
||
130 | |||
131 | |||
132 | /** |
||
133 | * testGetFunctionCallParameter |
||
134 | * |
||
135 | * @group utilityFunctions |
||
136 | * |
||
137 | * @dataProvider dataGetFunctionCallParameter |
||
138 | * |
||
139 | * @param int $stackPtr Stack pointer for a T_CLASS token in the test file. |
||
140 | * @param string $expected The expected fully qualified class name. |
||
141 | */ |
||
142 | public function testGetFunctionCallParameter($stackPtr, $paramPosition, $expected) |
||
147 | |||
148 | /** |
||
149 | * dataGetFunctionCallParameter |
||
150 | * |
||
151 | * @see testGetFunctionCallParameter() |
||
152 | * |
||
153 | * @return array |
||
154 | */ |
||
155 | public function dataGetFunctionCallParameter() |
||
184 | |||
185 | |||
186 | /** |
||
187 | * testGetFunctionCallParameterCount |
||
188 | * |
||
189 | * @group utilityFunctions |
||
190 | * |
||
191 | * @dataProvider dataGetFunctionCallParameterCount |
||
192 | * |
||
193 | * @param int $stackPtr Stack pointer for a T_CLASS token in the test file. |
||
194 | * @param string $expected The expected fully qualified class name. |
||
195 | */ |
||
196 | public function testGetFunctionCallParameterCount($stackPtr, $expected) |
||
201 | |||
202 | /** |
||
203 | * dataGetFunctionCallParameterCount |
||
204 | * |
||
205 | * @see testGetFunctionCallParameterCount() |
||
206 | * |
||
207 | * @return array |
||
208 | */ |
||
209 | public function dataGetFunctionCallParameterCount() |
||
238 | |||
239 | } |
||
240 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.