| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function testWordCount() { |
||
| 23 | $this->tree->add('hello'); |
||
| 24 | $this->assertEquals(1, $this->tree->wordCount()); |
||
| 25 | $this->tree->add('bye'); |
||
| 26 | $this->assertEquals(2, $this->tree->wordCount()); |
||
| 27 | $this->tree->add('hello'); |
||
| 28 | $this->assertEquals(2, $this->tree->wordCount()); |
||
| 29 | } |
||
| 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.