| 1 | <?php |
||
| 15 | class GetFunctionParameterCountTest extends BaseAbstractClassMethodTest |
||
|
|
|||
| 16 | { |
||
| 17 | |||
| 18 | public $filename = 'sniff-examples/utility-functions/count_function_parameters.php'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * testGetFunctionCallParameterCount |
||
| 22 | * |
||
| 23 | * @group utilityFunctions |
||
| 24 | * |
||
| 25 | * @dataProvider dataGetFunctionCallParameterCount |
||
| 26 | * |
||
| 27 | * @param int $stackPtr Stack pointer for a T_CLASS token in the test file. |
||
| 28 | * @param string $expected The expected fully qualified class name. |
||
| 29 | */ |
||
| 30 | public function testGetFunctionCallParameterCount($stackPtr, $expected) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * dataGetFunctionCallParameterCount |
||
| 38 | * |
||
| 39 | * @see testGetFunctionCallParameterCount() |
||
| 40 | * |
||
| 41 | * @return array |
||
| 42 | */ |
||
| 43 | public function dataGetFunctionCallParameterCount() |
||
| 72 | |||
| 73 | } |
||
| 74 |
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.