Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 10 |
Ratio | 100 % |
1 | <?php |
||
30 | View Code Duplication | public function testGetSuggestions() { |
|
31 | $provider = new HunSpellProvider(); |
||
32 | $result = $provider->getSuggestions('en_US', 'collor'); |
||
33 | $this->assertArrayContains( |
||
34 | array('color', 'collar', 'coll or', 'coll-or', 'collator'), |
||
35 | $result |
||
36 | ); |
||
37 | $result = $provider->getSuggestions('en_US', 'basketball'); |
||
38 | $this->assertEmpty($result); |
||
39 | } |
||
40 | } |
||
41 |
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.