From 130c16995be6d5dee1c98447259a77b707f45ca7 Mon Sep 17 00:00:00 2001 From: gggeek Date: Tue, 30 Oct 2018 11:13:18 +0000 Subject: [PATCH] tests --- tests/4LocalhostMultiTest.php | 19 +++++++++++++++++++ tests/parse_args.php | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/tests/4LocalhostMultiTest.php b/tests/4LocalhostMultiTest.php index 0516c30..32fef36 100644 --- a/tests/4LocalhostMultiTest.php +++ b/tests/4LocalhostMultiTest.php @@ -377,4 +377,23 @@ class LocalhostMultiTest extends LocalhostTest $this->$method(); } + + function testBasicAuth() + { + $this->client->setCredentials('test', 'test'); + $this->client->path = $this->args['URI'].'?FORCE_AUTH=Basic'; + $this->_runtests(); + } + + function testDigestAuth() + { + if(!function_exists('curl_init')) + { + $this->markTestSkipped('CURL missing: cannot test digest auth functionality'); + return; + } + $this->client->setCredentials('test', 'test', CURLAUTH_DIGEST); + $this->client->path = $this->args['URI'].'?FORCE_AUTH=Digest'; + $this->_runtests(); + } } diff --git a/tests/parse_args.php b/tests/parse_args.php index 6660b9e..d6632ab 100644 --- a/tests/parse_args.php +++ b/tests/parse_args.php @@ -14,7 +14,7 @@ * @param int HTTPSVERIFYHOST * @param int SSLVERSION * - * @copyright (C) 2007-2015 G. Giunta + * @copyright (C) 2007-2017 G. Giunta * @license code licensed under the BSD License: see file license.txt **/ class argParser -- 2.43.0