| @@ 119-132 (lines=14) @@ | ||
| 116 | * @dataProvider getSingleHttpTestMethods |
|
| 117 | * @param string $method |
|
| 118 | */ |
|
| 119 | public function testHttp11($method) |
|
| 120 | { |
|
| 121 | if(!function_exists('curl_init')) |
|
| 122 | { |
|
| 123 | $this->markTestSkipped('CURL missing: cannot test http 1.1'); |
|
| 124 | return; |
|
| 125 | } |
|
| 126 | ||
| 127 | $this->method = 'http11'; // not an error the double assignment! |
|
| 128 | $this->client->method = 'http11'; |
|
| 129 | $this->client->keepalive = false; |
|
| 130 | ||
| 131 | $this->$method(); |
|
| 132 | } |
|
| 133 | ||
| 134 | /** |
|
| 135 | * @dataProvider getSingleHttpTestMethods |
|
| @@ 138-152 (lines=15) @@ | ||
| 135 | * @dataProvider getSingleHttpTestMethods |
|
| 136 | * @param string $method |
|
| 137 | */ |
|
| 138 | public function testHttp10Curl($method) |
|
| 139 | { |
|
| 140 | if(!function_exists('curl_init')) |
|
| 141 | { |
|
| 142 | $this->markTestSkipped('CURL missing: cannot test http 1.1'); |
|
| 143 | return; |
|
| 144 | } |
|
| 145 | ||
| 146 | $this->method = 'http10'; // not an error the double assignment! |
|
| 147 | $this->client->method = 'http10'; |
|
| 148 | $this->client->keepalive = false; |
|
| 149 | $this->client->setUseCurl(\PhpXmlRpc\Client::USE_CURL_ALWAYS); |
|
| 150 | ||
| 151 | $this->$method(); |
|
| 152 | } |
|
| 153 | ||
| 154 | /** |
|
| 155 | * @dataProvider getSingleHttpTestMethods |
|