Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 6 |
Lines | 7 |
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 | } |
||
21 | |||
30 | } |
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.