1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 16:42:57 +00:00
This commit is contained in:
Jordi Boggiano 2020-11-22 14:48:56 +01:00
parent 152694b574
commit b7d770659b
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
175 changed files with 688 additions and 724 deletions

View file

@ -12,7 +12,6 @@
namespace Composer\Test\Util\Http;
use Composer\Util\Http\ProxyHelper;
use Composer\Util\Http\ProxyManager;
use Composer\Test\TestCase;
@ -109,8 +108,7 @@ class ProxyManagerTest extends TestCase
'proxy' => 'tcp://proxy.com:80',
'header' => 'Proxy-Authorization: Basic dXNlcjpwQHNz',
'request_fulluri' => true,
)
),
)),
false,
'http://user:***@proxy.com:80',
),
@ -118,8 +116,7 @@ class ProxyManagerTest extends TestCase
$server, 'https://repo.org', 'https://proxy.com:443',
array('http' => array(
'proxy' => 'ssl://proxy.com:443',
)
),
)),
true,
'https://proxy.com:443',
),
@ -156,12 +153,12 @@ class ProxyManagerTest extends TestCase
array(
array('http_proxy' => 'http://user:p%40ss@proxy.com:80'),
true,
'http=http://user:***@proxy.com:80'
'http=http://user:***@proxy.com:80',
),
array(
array('http_proxy' => 'proxy.com:80', 'https_proxy' => 'proxy.com:80'),
true,
'http=proxy.com:80, https=proxy.com:80'
'http=proxy.com:80, https=proxy.com:80',
),
);
}