1 | <?php |
||
16 | class NewGroupUseDeclarationsSniffTest extends BaseSniffTest |
||
|
|||
17 | { |
||
18 | |||
19 | const TEST_FILE = 'sniff-examples/new_group_use_declarations.php'; |
||
20 | |||
21 | protected function setUp() |
||
30 | |||
31 | /** |
||
32 | * testGroupUseDeclaration |
||
33 | * |
||
34 | * @dataProvider dataGroupUseDeclaration |
||
35 | * |
||
36 | * @param int $line The line number. |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | public function testGroupUseDeclaration($line) |
||
48 | |||
49 | /** |
||
50 | * Data provider. |
||
51 | * |
||
52 | * @see testGroupUseDeclaration() |
||
53 | * |
||
54 | * @return array |
||
55 | */ |
||
56 | public function dataGroupUseDeclaration() |
||
63 | |||
64 | |||
65 | /** |
||
66 | * testValidUseDeclaration |
||
67 | * |
||
68 | * @dataProvider dataValidUseDeclaration |
||
69 | * |
||
70 | * @param int $line The line number. |
||
71 | * |
||
72 | * @return void |
||
73 | */ |
||
74 | public function testValidUseDeclaration($line) |
||
79 | |||
80 | /** |
||
81 | * Data provider. |
||
82 | * |
||
83 | * @see testValidUseDeclaration() |
||
84 | * |
||
85 | * @return array |
||
86 | */ |
||
87 | public function dataValidUseDeclaration() |
||
98 | } |
||
99 |
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.