Code Duplication    Length = 9-9 lines in 2 locations

tests/UATests.php 2 locations

@@ 24-32 (lines=9) @@
21
        $this->CrawlerDetect = new CrawlerDetect();
22
    }
23
24
    public function testBots()
25
    {
26
        $lines = file(__DIR__.'/crawlers.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
27
28
        foreach ($lines as $line) {
29
            $test = $this->CrawlerDetect->isCrawler($line);
30
            $this->assertEquals($test, true, $line);
31
        }
32
    }
33
34
    public function testDevices()
35
    {
@@ 34-42 (lines=9) @@
31
        }
32
    }
33
34
    public function testDevices()
35
    {
36
        $lines = file(__DIR__.'/devices.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
37
38
        foreach ($lines as $line) {
39
            $test = $this->CrawlerDetect->isCrawler($line);
40
            $this->assertEquals($test, false, $line);
41
        }
42
    }
43
44
    public function testReturnsCorrectMatchedBotName()
45
    {