1 | <?php |
||
3 | class Parser_Text_PreprocessorTest extends SwaggerGen_TestCase |
||
|
|||
4 | { |
||
5 | |||
6 | /** |
||
7 | * @covers \SwaggerGen\Parser\Text\Preprocessor::__construct |
||
8 | */ |
||
9 | public function testConstructor_Empty() |
||
14 | |||
15 | /** |
||
16 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
17 | */ |
||
18 | public function testPreprocess_Ifdef_NotDefined() |
||
34 | |||
35 | /** |
||
36 | * @covers \SwaggerGen\Parser\Text\Preprocessor::define |
||
37 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
38 | */ |
||
39 | public function testPreprocess_Ifdef_Defined() |
||
56 | |||
57 | /** |
||
58 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
59 | */ |
||
60 | public function testPreprocess_Ifndef_NotDefined() |
||
76 | |||
77 | /** |
||
78 | * @covers \SwaggerGen\Parser\Text\Preprocessor::define |
||
79 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
80 | */ |
||
81 | public function testPreprocess_Ifndef_Defined() |
||
98 | |||
99 | /** |
||
100 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
101 | */ |
||
102 | public function testPreprocess_Define() |
||
120 | |||
121 | /** |
||
122 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
123 | */ |
||
124 | public function testPreprocess_Undef() |
||
144 | |||
145 | /** |
||
146 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
147 | */ |
||
148 | public function testPreprocess_If_NotDefined() |
||
164 | |||
165 | /** |
||
166 | * @covers \SwaggerGen\Parser\Text\Preprocessor::define |
||
167 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
168 | */ |
||
169 | public function testPreprocess_If_AnyValue() |
||
186 | |||
187 | /** |
||
188 | * @covers \SwaggerGen\Parser\Text\Preprocessor::define |
||
189 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
190 | */ |
||
191 | public function testPreprocess_If_NoValue() |
||
208 | |||
209 | /** |
||
210 | * @covers \SwaggerGen\Parser\Text\Preprocessor::define |
||
211 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
212 | */ |
||
213 | public function testPreprocess_If_Mismatch() |
||
230 | |||
231 | /** |
||
232 | * @covers \SwaggerGen\Parser\Text\Preprocessor::define |
||
233 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
234 | */ |
||
235 | public function testPreprocess_If_Match() |
||
252 | |||
253 | /** |
||
254 | * @covers \SwaggerGen\Parser\Text\Preprocessor::define |
||
255 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
256 | */ |
||
257 | public function testPreprocess_Else_Match() |
||
278 | |||
279 | /** |
||
280 | * @covers \SwaggerGen\Parser\Text\Preprocessor::define |
||
281 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
282 | */ |
||
283 | public function testPreprocess_Elif_Match() |
||
308 | |||
309 | /** |
||
310 | * @covers \SwaggerGen\Parser\Text\Preprocessor::define |
||
311 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
312 | */ |
||
313 | public function testPreprocess_Elif_NoValue() |
||
338 | |||
339 | /** |
||
340 | * @covers \SwaggerGen\Parser\Text\Preprocessor::define |
||
341 | * @covers \SwaggerGen\Parser\Text\Preprocessor::undefine |
||
342 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
343 | */ |
||
344 | public function testPreprocess_Undefine() |
||
362 | |||
363 | /** |
||
364 | * @covers \SwaggerGen\Parser\Text\Preprocessor::define |
||
365 | * @covers \SwaggerGen\Parser\Text\Preprocessor::resetDefines |
||
366 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
367 | */ |
||
368 | public function testPreprocess_ResetDefines() |
||
386 | |||
387 | /** |
||
388 | * @covers \SwaggerGen\Parser\Text\Preprocessor::addDefines |
||
389 | * @covers \SwaggerGen\Parser\Text\Preprocessor::preprocess |
||
390 | */ |
||
391 | public function testPreprocess_AddDefines() |
||
408 | |||
409 | } |
||
410 |
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.