Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 9 |
Lines | 10 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
24 | View Code Duplication | public function testWordCount() { |
|
25 | $this->tree->add('hello'); |
||
26 | $this->assertEquals(1, $this->tree->wordCount()); |
||
27 | $this->tree->add('bye'); |
||
28 | $this->assertEquals(2, $this->tree->wordCount()); |
||
29 | $this->tree->add('hello'); |
||
30 | $this->assertEquals(2, $this->tree->wordCount()); |
||
31 | $this->tree->add('hell'); |
||
32 | $this->assertEquals(3, $this->tree->wordCount()); |
||
33 | } |
||
34 | |||
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.