Code Duplication    Length = 10-10 lines in 2 locations

tests/4LocalhostMultiTest.php 2 locations

@@ 179-188 (lines=10) @@
176
     */
177
    public function testHttp11Proxy($method)
178
    {
179
        if(!function_exists('curl_init'))
180
        {
181
            $this->markTestSkipped('CURL missing: cannot test http 1.1 w. proxy');
182
            return;
183
        }
184
        else if ($this->args['PROXYSERVER'] == '')
185
        {
186
            $this->markTestSkipped('PROXY definition missing: cannot test proxy w. http 1.1');
187
            return;
188
        }
189
190
        $this->method = 'http11'; // not an error the double assignment!
191
        $this->client->method = 'http11';
@@ 227-236 (lines=10) @@
224
     */
225
    public function testHttpsProxy($method)
226
    {
227
        if(!function_exists('curl_init'))
228
        {
229
            $this->markTestSkipped('CURL missing: cannot test https functionality');
230
            return;
231
        }
232
        else if ($this->args['PROXYSERVER'] == '')
233
        {
234
            $this->markTestSkipped('PROXY definition missing: cannot test proxy w. http 1.1');
235
            return;
236
        }
237
        $this->client->server = $this->args['HTTPSSERVER'];
238
        $this->method = 'https';
239
        $this->client->method = 'https';