| @@ 48-60 (lines=13) @@ | ||
| 45 | * @dataProvider getSingleHttpTestMethods |
|
| 46 | * @param string $method |
|
| 47 | */ |
|
| 48 | public function testDeflate($method) |
|
| 49 | { |
|
| 50 | if(!function_exists('gzdeflate')) |
|
| 51 | { |
|
| 52 | $this->markTestSkipped('Zlib missing: cannot test deflate functionality'); |
|
| 53 | return; |
|
| 54 | } |
|
| 55 | ||
| 56 | $this->client->accepted_compression = array('deflate'); |
|
| 57 | $this->client->request_compression = 'deflate'; |
|
| 58 | ||
| 59 | $this->$method(); |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * @dataProvider getSingleHttpTestMethods |
|
| @@ 66-78 (lines=13) @@ | ||
| 63 | * @dataProvider getSingleHttpTestMethods |
|
| 64 | * @param string $method |
|
| 65 | */ |
|
| 66 | public function testGzip($method) |
|
| 67 | { |
|
| 68 | if(!function_exists('gzdeflate')) |
|
| 69 | { |
|
| 70 | $this->markTestSkipped('Zlib missing: cannot test gzip functionality'); |
|
| 71 | return; |
|
| 72 | } |
|
| 73 | ||
| 74 | $this->client->accepted_compression = array('gzip'); |
|
| 75 | $this->client->request_compression = 'gzip'; |
|
| 76 | ||
| 77 | $this->$method(); |
|
| 78 | } |
|
| 79 | ||
| 80 | public function testKeepAlives() |
|
| 81 | { |
|