| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function testCommandDocWithoutDescription() |
||
| 23 | { |
||
| 24 | $object = new \SwaggerGen\Swagger\Tag($this->parent, 'Name'); |
||
| 25 | |||
| 26 | $this->assertInstanceOf('\SwaggerGen\Swagger\Tag', $object); |
||
| 27 | |||
| 28 | $this->assertSame(array( |
||
| 29 | 'name' => 'Name', |
||
| 30 | ), $object->toArray()); |
||
| 31 | |||
| 32 | $object->handleCommand('doc', 'http://example.test'); |
||
| 33 | |||
| 34 | $this->assertSame(array( |
||
| 35 | 'name' => 'Name', |
||
| 36 | 'externalDocs' => array( |
||
| 37 | 'url' => 'http://example.test', |
||
| 38 | ), |
||
| 39 | ), $object->toArray()); |
||
| 40 | } |
||
| 41 | |||
| 68 |
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.