| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 9 |
| Ratio | 100 % |
| 1 | <?php |
||
| 22 | View Code Duplication | public function testDevices() |
|
| 23 | { |
||
| 24 | $lines = file(__DIR__.'/devices.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); |
||
| 25 | |||
| 26 | foreach ($lines as $line) { |
||
| 27 | $test = $this->CrawlerDetect->isCrawler($line); |
||
| 28 | $this->assertEquals($test, false, $line); |
||
| 29 | } |
||
| 30 | } |
||
| 31 | } |
||
| 32 |
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.