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