@@ 200-209 (lines=10) @@ | ||
197 | */ |
|
198 | public function testHttp11Proxy($method) |
|
199 | { |
|
200 | if(!function_exists('curl_init')) |
|
201 | { |
|
202 | $this->markTestSkipped('CURL missing: cannot test http 1.1 w. proxy'); |
|
203 | return; |
|
204 | } |
|
205 | else if ($this->args['PROXYSERVER'] == '') |
|
206 | { |
|
207 | $this->markTestSkipped('PROXY definition missing: cannot test proxy w. http 1.1'); |
|
208 | return; |
|
209 | } |
|
210 | ||
211 | $this->method = 'http11'; // not an error the double assignment! |
|
212 | $this->client->method = 'http11'; |
|
@@ 225-234 (lines=10) @@ | ||
222 | */ |
|
223 | public function testHttps($method) |
|
224 | { |
|
225 | if(!function_exists('curl_init')) |
|
226 | { |
|
227 | $this->markTestSkipped('CURL missing: cannot test https functionality'); |
|
228 | return; |
|
229 | } |
|
230 | else if ($this->args['HTTPSSERVER'] == '') |
|
231 | { |
|
232 | $this->markTestSkipped('HTTPS SERVER definition missing: cannot test https'); |
|
233 | return; |
|
234 | } |
|
235 | ||
236 | $this->client->server = $this->args['HTTPSSERVER']; |
|
237 | $this->method = 'https'; |