Code Duplication    Length = 8-8 lines in 2 locations

tests/UATests.php 2 locations

@@ 146-153 (lines=8) @@
143
    }
144
145
    /** @test */
146
    public function extends_crawlers_as_string()
147
    {
148
        $cd = new CrawlerDetect(null, 'Mozilla/5.0 (iPhone; CPU iPhone OS 7_1 like Mac OS X) AppleWebKit (KHTML, like Gecko) Mobile (compatible; some_user_agent)');
149
        $this->assertFalse($cd->isCrawler());
150
151
        $cd->extendCrawlers('some_user_agent');
152
        $this->assertTrue($cd->isCrawler());
153
    }
154
155
    /** @test */
156
    public function extends_crawlers_as_array()
@@ 156-163 (lines=8) @@
153
    }
154
155
    /** @test */
156
    public function extends_crawlers_as_array()
157
    {
158
        $cd = new CrawlerDetect(null, 'Mozilla/5.0 (iPhone; CPU iPhone OS 7_1 like Mac OS X) AppleWebKit (KHTML, like Gecko) Mobile (compatible; some_other_user_agent)');
159
        $this->assertFalse($cd->isCrawler());
160
161
        $cd->extendCrawlers(array('some_user_agent', 'some_other_user_agent'));
162
        $this->assertTrue($cd->isCrawler());
163
    }
164
}
165