| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function testConstructor_File() |
||
| 21 | { |
||
| 22 | $object = new \SwaggerGen\Statement('command', 'some data', 'file', 123); |
||
| 23 | $this->assertInstanceOf('\SwaggerGen\Statement', $object); |
||
| 24 | |||
| 25 | $this->assertSame('command', $object->getCommand()); |
||
| 26 | $this->assertSame('some data', $object->getData()); |
||
| 27 | $this->assertSame('file', $object->getFile()); |
||
| 28 | $this->assertSame(123, $object->getLine()); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |
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.