Code Duplication    Length = 7-7 lines in 2 locations

test/ViewRenderTest.php 2 locations

@@ 28-34 (lines=7) @@
25
        $this->assertEquals('default', trim($output));
26
    }
27
28
    public function testMobileRender()
29
    {
30
        $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1';
31
        $output = Yii::$app->runAction('test/test');
32
33
        $this->assertEquals('mobile', trim($output));
34
    }
35
36
    public function testTabletRender()
37
    {
@@ 36-42 (lines=7) @@
33
        $this->assertEquals('mobile', trim($output));
34
    }
35
36
    public function testTabletRender()
37
    {
38
        $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25';
39
        $output = Yii::$app->runAction('test/test');
40
41
        $this->assertEquals('tablet', trim($output));
42
    }
43
44
    public function testRestoreRenderer()
45
    {