1 | <?php |
||
25 | class ShapeFileTest extends PHPUnit_Framework_TestCase |
||
|
|||
26 | { |
||
27 | /** |
||
28 | * Tests loading of a file |
||
29 | * |
||
30 | * @param string $filename Name of file |
||
31 | * @param integer $records Expected number of records |
||
32 | * @param integer $parts Expected number of parts in first record |
||
33 | * |
||
34 | * @return void |
||
35 | * |
||
36 | * @dataProvider provideFiles |
||
37 | */ |
||
38 | public function testLoad($filename, $records, $parts) |
||
48 | |||
49 | /** |
||
50 | * Data provider for file loading tests. |
||
51 | * |
||
52 | * @return array |
||
53 | */ |
||
54 | public function provideFiles() |
||
63 | |||
64 | /** |
||
65 | * Test error handling in loader |
||
66 | * |
||
67 | * @param string $filename name to load |
||
68 | * |
||
69 | * @return void |
||
70 | * |
||
71 | * @dataProvider provideErrorFiles |
||
72 | */ |
||
73 | public function testLoadError($filename) |
||
79 | |||
80 | /** |
||
81 | * Data provider for file loading error tests. |
||
82 | * |
||
83 | * @return array |
||
84 | */ |
||
85 | public function provideErrorFiles() |
||
94 | |||
95 | /** |
||
96 | * Creates test data |
||
97 | * |
||
98 | * @return void |
||
99 | */ |
||
100 | private function createTestData() |
||
135 | |||
136 | /** |
||
137 | * Tests creating file |
||
138 | * |
||
139 | * @return void |
||
140 | */ |
||
141 | public function testCreate() |
||
149 | |||
150 | /** |
||
151 | * Tests creating file |
||
152 | * |
||
153 | * @return void |
||
154 | */ |
||
155 | public function testDelete() |
||
168 | } |
||
169 |
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.