Code Duplication    Length = 9-9 lines in 2 locations

tests/UserAgentTest.php 2 locations

@@ 45-53 (lines=9) @@
42
    }
43
44
    /** @test */
45
    public function it_returns_correct_matched_bot_name()
46
    {
47
        $this->CrawlerDetect = new CrawlerDetect();
48
        $this->CrawlerDetect->isCrawler('Mozilla/5.0 (iPhone; CPU iPhone OS 7_1 like Mac OS X) AppleWebKit (KHTML, like Gecko) Mobile (compatible; Yahoo Ad monitoring; https://help.yahoo.com/kb/yahoo-ad-monitoring-SLN24857.html)');
49
50
        $matches = $this->CrawlerDetect->getMatches();
51
52
        $this->assertEquals($this->CrawlerDetect->getMatches(), 'monitoring', $matches);
53
    }
54
55
    /** @test */
56
    public function it_returns_full_matched_bot_name()
@@ 56-64 (lines=9) @@
53
    }
54
55
    /** @test */
56
    public function it_returns_full_matched_bot_name()
57
    {
58
        $this->CrawlerDetect = new CrawlerDetect();
59
        $this->CrawlerDetect->isCrawler('somenaughtybot');
60
61
        $matches = $this->CrawlerDetect->getMatches();
62
63
        $this->assertEquals($this->CrawlerDetect->getMatches(), 'somenaughtybot', $matches);
64
    }
65
66
    /** @test */
67
    public function it_returns_null_when_no_bot_detected()