Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function testGetAllTagsMap() |
||
20 | { |
||
21 | $extension = new DMSDocumentTaxonomyExtension; |
||
22 | $result = $extension->getAllTagsMap(); |
||
23 | |||
24 | $this->assertContains('Subject > Mathematics', $result); |
||
25 | $this->assertContains('Subject', $result); |
||
26 | $this->assertContains('Subject > Science > Chemistry', $result); |
||
27 | $this->assertNotContains('Physical Education', $result); |
||
28 | } |
||
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.