1 | <?php |
||
3 | class ParameterTest extends SwaggerGen_TestCase |
||
|
|||
4 | { |
||
5 | |||
6 | protected $parent; |
||
7 | |||
8 | protected function setUp() |
||
12 | |||
13 | protected function assertPreConditions() |
||
17 | |||
18 | /** |
||
19 | * @covers \SwaggerGen\Swagger\Parameter::__construct |
||
20 | */ |
||
21 | public function testConstructor_InEmpty() |
||
27 | |||
28 | /** |
||
29 | * @covers \SwaggerGen\Swagger\Parameter::__construct |
||
30 | */ |
||
31 | public function testConstructor_InNotValid() |
||
37 | |||
38 | /** |
||
39 | * @covers \SwaggerGen\Swagger\Parameter::__construct |
||
40 | */ |
||
41 | public function testConstructor_DefinitionEmpty() |
||
47 | |||
48 | /** |
||
49 | * @covers \SwaggerGen\Swagger\Parameter::__construct |
||
50 | */ |
||
51 | public function testConstructor_NameEmpty() |
||
57 | |||
58 | /** |
||
59 | * @covers \SwaggerGen\Swagger\Parameter::__construct |
||
60 | */ |
||
61 | public function testConstructor_DefinitionUnknownType() |
||
67 | |||
68 | /** |
||
69 | * @covers \SwaggerGen\Swagger\Parameter::__construct |
||
70 | */ |
||
71 | public function testConstructor() |
||
85 | |||
86 | /** |
||
87 | * @covers \SwaggerGen\Swagger\Parameter::__construct |
||
88 | */ |
||
89 | public function testConstructor_PathAlwaysRequired() |
||
103 | |||
104 | /** |
||
105 | * @covers \SwaggerGen\Swagger\Parameter::__construct |
||
106 | */ |
||
107 | public function testConstructor_Optional() |
||
120 | |||
121 | /** |
||
122 | * @covers \SwaggerGen\Swagger\Parameter::__construct |
||
123 | */ |
||
124 | public function testConstructor_Description() |
||
139 | |||
140 | /** |
||
141 | * @covers \SwaggerGen\Swagger\Parameter::__construct |
||
142 | */ |
||
143 | public function testConstructor_Form() |
||
156 | |||
157 | /** |
||
158 | * @covers \SwaggerGen\Swagger\Parameter::__construct |
||
159 | */ |
||
160 | public function testConstructor_Header() |
||
173 | |||
174 | /** |
||
175 | * @covers \SwaggerGen\Swagger\Type\Parameter->handleCommand |
||
176 | */ |
||
177 | public function testHandleCommand_Passing() |
||
194 | |||
195 | } |
||
196 |
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.