@@ 134-143 (lines=10) @@ | ||
131 | ||
132 | function testHttp11Proxy() |
|
133 | { |
|
134 | if(!function_exists('curl_init')) |
|
135 | { |
|
136 | $this->markTestSkipped('CURL missing: cannot test http 1.1 w. proxy'); |
|
137 | return; |
|
138 | } |
|
139 | else if ($this->args['PROXYSERVER'] == '') |
|
140 | { |
|
141 | $this->markTestSkipped('PROXY definition missing: cannot test proxy w. http 1.1'); |
|
142 | return; |
|
143 | } |
|
144 | $this->method = 'http11'; // not an error the double assignment! |
|
145 | $this->client->method = 'http11'; |
|
146 | $this->client->setProxy($this->args['PROXYSERVER'], $this->args['PROXYPORT']); |
|
@@ 172-181 (lines=10) @@ | ||
169 | ||
170 | function testHttpsProxy() |
|
171 | { |
|
172 | if(!function_exists('curl_init')) |
|
173 | { |
|
174 | $this->markTestSkipped('CURL missing: cannot test https functionality'); |
|
175 | return; |
|
176 | } |
|
177 | else if ($this->args['PROXYSERVER'] == '') |
|
178 | { |
|
179 | $this->markTestSkipped('PROXY definition missing: cannot test proxy w. http 1.1'); |
|
180 | return; |
|
181 | } |
|
182 | $this->client->server = $this->args['HTTPSSERVER']; |
|
183 | $this->method = 'https'; |
|
184 | $this->client->method = 'https'; |