| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 8 |
| Lines | 9 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | View Code Duplication | public function testAdd() { |
|
| 15 | $this->tree->add('hello'); |
||
| 16 | $this->tree->add('bye'); |
||
| 17 | $this->assertEquals(8, $this->tree->size()); |
||
| 18 | $this->tree->add('hello'); |
||
| 19 | $this->assertEquals(8, $this->tree->size()); |
||
| 20 | $this->tree->add('hell'); |
||
| 21 | $this->assertEquals(8, $this->tree->size()); |
||
| 22 | } |
||
| 23 | |||
| 42 | } |
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.