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() |
||
148 | |||
149 | |||
150 | /** |
||
151 | * testGetFunctionCallParameter |
||
152 | * |
||
153 | * @group utilityFunctions |
||
154 | * |
||
155 | * @dataProvider dataGetFunctionCallParameter |
||
156 | * |
||
157 | * @param int $stackPtr Stack pointer for a T_CLASS token in the test file. |
||
158 | * @param string $expected The expected fully qualified class name. |
||
159 | */ |
||
160 | public function testGetFunctionCallParameter($stackPtr, $paramPosition, $expected) |
||
165 | |||
166 | /** |
||
167 | * dataGetFunctionCallParameter |
||
168 | * |
||
169 | * @see testGetFunctionCallParameter() |
||
170 | * |
||
171 | * @return array |
||
172 | */ |
||
173 | public function dataGetFunctionCallParameter() |
||
202 | |||
203 | |||
204 | /** |
||
205 | * testGetFunctionCallParameterCount |
||
206 | * |
||
207 | * @group utilityFunctions |
||
208 | * |
||
209 | * @dataProvider dataGetFunctionCallParameterCount |
||
210 | * |
||
211 | * @param int $stackPtr Stack pointer for a T_CLASS token in the test file. |
||
212 | * @param string $expected The expected fully qualified class name. |
||
213 | */ |
||
214 | public function testGetFunctionCallParameterCount($stackPtr, $expected) |
||
219 | |||
220 | /** |
||
221 | * dataGetFunctionCallParameterCount |
||
222 | * |
||
223 | * @see testGetFunctionCallParameterCount() |
||
224 | * |
||
225 | * @return array |
||
226 | */ |
||
227 | public function dataGetFunctionCallParameterCount() |
||
281 | |||
282 | } |
||
283 |