Code Duplication    Length = 8-8 lines in 2 locations

tests/UATests.php 2 locations

@@ 47-54 (lines=8) @@
44
    }
45
46
    /** @test */
47
    public function it_returns_correct_matched_bot_name()
48
    {
49
        $test = $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)');
50
51
        $matches = $this->CrawlerDetect->getMatches();
52
53
        $this->assertEquals($this->CrawlerDetect->getMatches(), 'Yahoo Ad monitoring', $matches);
54
    }
55
56
    /** @test */
57
    public function it_returns_null_when_no_bot_detected()
@@ 57-64 (lines=8) @@
54
    }
55
56
    /** @test */
57
    public function it_returns_null_when_no_bot_detected()
58
    {
59
        $test = $this->CrawlerDetect->isCrawler('nothing to see here');
60
61
        $matches = $this->CrawlerDetect->getMatches();
62
63
        $this->assertEquals($this->CrawlerDetect->getMatches(), null, $matches);
64
    }
65
66
    /** @test */
67
    public function empty_user_agent()