Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function testConstructor() |
||
10 | { |
||
11 | $object = new \SwaggerGen\Statement('command', 'some data'); |
||
12 | |||
13 | $this->assertInstanceOf('\SwaggerGen\Statement', $object); |
||
14 | $this->assertSame('command', $object->getCommand()); |
||
15 | $this->assertSame('some data', $object->getData()); |
||
16 | } |
||
17 | /** |
||
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.