Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 10 |
Ratio | 100 % |
1 | <?php |
||
19 | View Code Duplication | public function testCheckWords() { |
|
20 | $provider = new HunSpellProvider(); |
||
21 | $result = $provider->checkWords('en_US', array('collor', 'one', 'twoo', 'three')); |
||
22 | $this->assertArrayContains( |
||
23 | array('collor', 'twoo'), |
||
24 | $result |
||
25 | ); |
||
26 | $result = $provider->checkWords('en_US', array('basketball')); |
||
27 | $this->assertEmpty($result); |
||
28 | } |
||
29 | |||
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.