@@ 137-151 (lines=15) @@ | ||
134 | * @dataProvider getSingleHttpTestMethods |
|
135 | * @param string $method |
|
136 | */ |
|
137 | public function testHttp11Gzip($method) |
|
138 | { |
|
139 | if(!function_exists('curl_init')) |
|
140 | { |
|
141 | $this->markTestSkipped('CURL missing: cannot test http 1.1'); |
|
142 | return; |
|
143 | } |
|
144 | $this->method = 'http11'; // not an error the double assignment! |
|
145 | $this->client->method = 'http11'; |
|
146 | $this->client->keepalive = false; |
|
147 | $this->client->accepted_compression = array('gzip'); |
|
148 | $this->client->request_compression = 'gzip'; |
|
149 | ||
150 | $this->$method(); |
|
151 | } |
|
152 | ||
153 | /** |
|
154 | * @dataProvider getSingleHttpTestMethods |
|
@@ 157-171 (lines=15) @@ | ||
154 | * @dataProvider getSingleHttpTestMethods |
|
155 | * @param string $method |
|
156 | */ |
|
157 | public function testHttp11Deflate($method) |
|
158 | { |
|
159 | if(!function_exists('curl_init')) |
|
160 | { |
|
161 | $this->markTestSkipped('CURL missing: cannot test http 1.1'); |
|
162 | return; |
|
163 | } |
|
164 | $this->method = 'http11'; // not an error the double assignment! |
|
165 | $this->client->method = 'http11'; |
|
166 | $this->client->keepalive = false; |
|
167 | $this->client->accepted_compression = array('deflate'); |
|
168 | $this->client->request_compression = 'deflate'; |
|
169 | ||
170 | $this->$method(); |
|
171 | } |
|
172 | ||
173 | /** |
|
174 | * @dataProvider getSingleHttpTestMethods |