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