@@ 158-172 (lines=15) @@ | ||
155 | * @dataProvider getSingleHttpTestMethods |
|
156 | * @param string $method |
|
157 | */ |
|
158 | public function testHttp11Gzip($method) |
|
159 | { |
|
160 | if(!function_exists('curl_init')) |
|
161 | { |
|
162 | $this->markTestSkipped('CURL missing: cannot test http 1.1'); |
|
163 | return; |
|
164 | } |
|
165 | $this->method = 'http11'; // not an error the double assignment! |
|
166 | $this->client->method = 'http11'; |
|
167 | $this->client->keepalive = false; |
|
168 | $this->client->accepted_compression = array('gzip'); |
|
169 | $this->client->request_compression = 'gzip'; |
|
170 | ||
171 | $this->$method(); |
|
172 | } |
|
173 | ||
174 | /** |
|
175 | * @dataProvider getSingleHttpTestMethods |
|
@@ 178-192 (lines=15) @@ | ||
175 | * @dataProvider getSingleHttpTestMethods |
|
176 | * @param string $method |
|
177 | */ |
|
178 | public function testHttp11Deflate($method) |
|
179 | { |
|
180 | if(!function_exists('curl_init')) |
|
181 | { |
|
182 | $this->markTestSkipped('CURL missing: cannot test http 1.1'); |
|
183 | return; |
|
184 | } |
|
185 | $this->method = 'http11'; // not an error the double assignment! |
|
186 | $this->client->method = 'http11'; |
|
187 | $this->client->keepalive = false; |
|
188 | $this->client->accepted_compression = array('deflate'); |
|
189 | $this->client->request_compression = 'deflate'; |
|
190 | ||
191 | $this->$method(); |
|
192 | } |
|
193 | ||
194 | /** |
|
195 | * @dataProvider getSingleHttpTestMethods |