+
+ $this->$method();
+ }
+
+ /**
+ * @dataProvider getSingleHttpTestMethods
+ * @param string $method
+ */
+ public function testBasicAuth($method)
+ {
+ $this->client->setCredentials('test', 'test');
+ $this->addQueryParams(array('FORCE_AUTH' => 'Basic'));
+
+ $this->$method();
+ }
+
+ /**
+ * @dataProvider getSingleHttpTestMethods
+ * @param string $method
+ */
+ public function testDigestAuth($method)
+ {
+ if (!function_exists('curl_init'))
+ {
+ $this->markTestSkipped('CURL missing: cannot test digest auth functionality');
+ return;
+ }
+
+ $this->client->setCredentials('test', 'test', CURLAUTH_DIGEST);
+ $this->addQueryParams(array('FORCE_AUTH' => 'Digest'));
+ $this->method = 'http11';
+ $this->client->method = 'http11';
+
+ $this->$method();