Code Duplication    Length = 13-13 lines in 2 locations

tests/4LocalhostMultiTest.php 2 locations

@@ 47-59 (lines=13) @@
44
     * @dataProvider getSingleHttpTestMethods
45
     * @param string $method
46
     */
47
    public function testDeflate($method)
48
    {
49
        if(!function_exists('gzdeflate'))
50
        {
51
            $this->markTestSkipped('Zlib missing: cannot test deflate functionality');
52
            return;
53
        }
54
55
        $this->client->accepted_compression = array('deflate');
56
        $this->client->request_compression = 'deflate';
57
58
        $this->$method();
59
    }
60
61
    /**
62
     * @dataProvider getSingleHttpTestMethods
@@ 65-77 (lines=13) @@
62
     * @dataProvider getSingleHttpTestMethods
63
     * @param string $method
64
     */
65
    public function testGzip($method)
66
    {
67
        if(!function_exists('gzdeflate'))
68
        {
69
            $this->markTestSkipped('Zlib missing: cannot test gzip functionality');
70
            return;
71
        }
72
73
        $this->client->accepted_compression = array('gzip');
74
        $this->client->request_compression = 'gzip';
75
76
        $this->$method();
77
    }
78
79
    public function testKeepAlives()
80
    {