1 | <?php |
||
16 | class TokenScopeTest extends BaseAbstractClassMethodTest |
||
|
|||
17 | { |
||
18 | |||
19 | public $filename = 'sniff-examples/utility-functions/token_has_scope.php'; |
||
20 | |||
21 | /** |
||
22 | * testTokenHasScope |
||
23 | * |
||
24 | * @group utilityFunctions |
||
25 | * |
||
26 | * @dataProvider dataTokenHasScope |
||
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 testTokenHasScope($stackPtr, $expected, $validTokens = null) |
||
36 | |||
37 | /** |
||
38 | * dataTokenHasScope |
||
39 | * |
||
40 | * @see testTokenHasScope() |
||
41 | * |
||
42 | * @return array |
||
43 | */ |
||
44 | public function dataTokenHasScope() |
||
81 | |||
82 | /** |
||
83 | * testInClassScope |
||
84 | * |
||
85 | * @group utilityFunctions |
||
86 | * |
||
87 | * @dataProvider dataInClassScope |
||
88 | * |
||
89 | * @param int $stackPtr Stack pointer for an arbitrary token in the test file. |
||
90 | * @param string $expected The expected boolean return value. |
||
91 | */ |
||
92 | public function testInClassScope($stackPtr, $expected) |
||
97 | |||
98 | /** |
||
99 | * dataInClassScope |
||
100 | * |
||
101 | * @see testInClassScope() |
||
102 | * |
||
103 | * @return array |
||
104 | */ |
||
105 | public function dataInClassScope() |
||
114 | |||
115 | } |
||
116 |
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.