1 | <?php |
||
16 | class BaseClass_GetFunctionParametersTest extends BaseClass_MethodTestFrame |
||
|
|||
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 | * @covers PHPCompatibility_Sniff::getFunctionCallParameters |
||
29 | * |
||
30 | * @param int $stackPtr Stack pointer for a T_CLASS token in the test file. |
||
31 | * @param string $expected The expected fully qualified class name. |
||
32 | */ |
||
33 | public function testGetFunctionCallParameters($stackPtr, $expected) |
||
38 | |||
39 | /** |
||
40 | * dataGetFunctionCallParameters |
||
41 | * |
||
42 | * @see testGetFunctionCallParameters() |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | public function dataGetFunctionCallParameters() |
||
150 | |||
151 | |||
152 | /** |
||
153 | * testGetFunctionCallParameter |
||
154 | * |
||
155 | * @group utilityFunctions |
||
156 | * |
||
157 | * @dataProvider dataGetFunctionCallParameter |
||
158 | * |
||
159 | * @covers PHPCompatibility_Sniff::getFunctionCallParameter |
||
160 | * |
||
161 | * @param int $stackPtr Stack pointer for a T_CLASS token in the test file. |
||
162 | * @param string $expected The expected fully qualified class name. |
||
163 | */ |
||
164 | public function testGetFunctionCallParameter($stackPtr, $paramPosition, $expected) |
||
169 | |||
170 | /** |
||
171 | * dataGetFunctionCallParameter |
||
172 | * |
||
173 | * @see testGetFunctionCallParameter() |
||
174 | * |
||
175 | * @return array |
||
176 | */ |
||
177 | public function dataGetFunctionCallParameter() |
||
206 | |||
207 | |||
208 | /** |
||
209 | * testGetFunctionCallParameterCount |
||
210 | * |
||
211 | * @group utilityFunctions |
||
212 | * |
||
213 | * @dataProvider dataGetFunctionCallParameterCount |
||
214 | * |
||
215 | * @covers PHPCompatibility_Sniff::getFunctionCallParameterCount |
||
216 | * |
||
217 | * @param int $stackPtr Stack pointer for a T_CLASS token in the test file. |
||
218 | * @param string $expected The expected fully qualified class name. |
||
219 | */ |
||
220 | public function testGetFunctionCallParameterCount($stackPtr, $expected) |
||
225 | |||
226 | /** |
||
227 | * dataGetFunctionCallParameterCount |
||
228 | * |
||
229 | * @see testGetFunctionCallParameterCount() |
||
230 | * |
||
231 | * @return array |
||
232 | */ |
||
233 | public function dataGetFunctionCallParameterCount() |
||
287 | |||
288 | } |
||
289 |
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.