Code Duplication    Length = 10-10 lines in 2 locations

tests/4LocalhostMultiTest.php 2 locations

@@ 181-190 (lines=10) @@
178
     */
179
    public function testHttp11Proxy($method)
180
    {
181
        if(!function_exists('curl_init'))
182
        {
183
            $this->markTestSkipped('CURL missing: cannot test http 1.1 w. proxy');
184
            return;
185
        }
186
        else if ($this->args['PROXYSERVER'] == '')
187
        {
188
            $this->markTestSkipped('PROXY definition missing: cannot test proxy w. http 1.1');
189
            return;
190
        }
191
192
        $this->method = 'http11'; // not an error the double assignment!
193
        $this->client->method = 'http11';
@@ 206-215 (lines=10) @@
203
     */
204
    public function testHttps($method)
205
    {
206
        if(!function_exists('curl_init'))
207
        {
208
            $this->markTestSkipped('CURL missing: cannot test https functionality');
209
            return;
210
        }
211
        else if ($this->args['HTTPSSERVER'] == '')
212
        {
213
            $this->markTestSkipped('HTTPS SERVER definition missing: cannot test https');
214
            return;
215
        }
216
217
        $this->client->server = $this->args['HTTPSSERVER'];
218
        $this->method = 'https';