@@ 40-50 (lines=11) @@ | ||
37 | } |
|
38 | } |
|
39 | ||
40 | function testDeflate() |
|
41 | { |
|
42 | if(!function_exists('gzdeflate')) |
|
43 | { |
|
44 | $this->markTestSkipped('Zlib missing: cannot test deflate functionality'); |
|
45 | return; |
|
46 | } |
|
47 | $this->client->accepted_compression = array('deflate'); |
|
48 | $this->client->request_compression = 'deflate'; |
|
49 | $this->_runtests(); |
|
50 | } |
|
51 | ||
52 | function testGzip() |
|
53 | { |
|
@@ 52-62 (lines=11) @@ | ||
49 | $this->_runtests(); |
|
50 | } |
|
51 | ||
52 | function testGzip() |
|
53 | { |
|
54 | if(!function_exists('gzdeflate')) |
|
55 | { |
|
56 | $this->markTestSkipped('Zlib missing: cannot test gzip functionality'); |
|
57 | return; |
|
58 | } |
|
59 | $this->client->accepted_compression = array('gzip'); |
|
60 | $this->client->request_compression = 'gzip'; |
|
61 | $this->_runtests(); |
|
62 | } |
|
63 | ||
64 | function testKeepAlives() |
|
65 | { |
|
@@ 64-74 (lines=11) @@ | ||
61 | $this->_runtests(); |
|
62 | } |
|
63 | ||
64 | function testKeepAlives() |
|
65 | { |
|
66 | if(!function_exists('curl_init')) |
|
67 | { |
|
68 | $this->markTestSkipped('CURL missing: cannot test http 1.1'); |
|
69 | return; |
|
70 | } |
|
71 | $this->method = 'http11'; |
|
72 | $this->client->keepalive = true; |
|
73 | $this->_runtests(); |
|
74 | } |
|
75 | ||
76 | function testProxy() |
|
77 | { |
|
@@ 87-100 (lines=14) @@ | ||
84 | $this->markTestSkipped('PROXY definition missing: cannot test proxy'); |
|
85 | } |
|
86 | ||
87 | function testHttp11() |
|
88 | { |
|
89 | if(!function_exists('curl_init')) |
|
90 | { |
|
91 | $this->markTestSkipped('CURL missing: cannot test http 1.1'); |
|
92 | return; |
|
93 | } |
|
94 | $this->method = 'http11'; // not an error the double assignment! |
|
95 | $this->client->method = 'http11'; |
|
96 | //$this->client->verifyhost = 0; |
|
97 | //$this->client->verifypeer = 0; |
|
98 | $this->client->keepalive = false; |
|
99 | $this->_runtests(); |
|
100 | } |
|
101 | ||
102 | function testHttp11Gzip() |
|
103 | { |