Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 9 |
Ratio | 100 % |
1 | <?php |
||
12 | View Code Duplication | public function testBots() |
|
13 | { |
||
14 | $lines = file(__DIR__.'/crawlers.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); |
||
15 | |||
16 | foreach ($lines as $line) { |
||
17 | $test = $this->CrawlerDetect->isCrawler($line); |
||
18 | $this->assertEquals($test, true, $line); |
||
19 | } |
||
20 | } |
||
21 | |||
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.