1 | <?php |
||
15 | class InClassScopeTest extends BaseAbstractClassMethodTest |
||
|
|||
16 | { |
||
17 | |||
18 | public $filename = 'sniff-examples/utility-functions/in_class_scope.php'; |
||
19 | |||
20 | /** |
||
21 | * testInClassScope |
||
22 | * |
||
23 | * @group utilityFunctions |
||
24 | * |
||
25 | * @dataProvider dataInClassScope |
||
26 | * |
||
27 | * @param int $stackPtr Stack pointer for an arbitrary token in the test file. |
||
28 | * @param string $expected The expected boolean return value. |
||
29 | */ |
||
30 | public function testInClassScope($stackPtr, $expected) |
||
35 | |||
36 | /** |
||
37 | * dataInClassScope |
||
38 | * |
||
39 | * @see testInClassScope() |
||
40 | * |
||
41 | * @return array |
||
42 | */ |
||
43 | public function dataInClassScope() |
||
54 | |||
55 | } |
||
56 |
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.