1
0
Fork 0
composer/tests/Composer/Test/Util
John Stevenson 3cc490d4c4
Refactor proxy handling to require https_proxy (#11915)
Composer has always allowed a single http_proxy (or CGI_HTTP_PROXY)
environment variable to be used for both HTTP and HTTPS requests. But
many other tools and libraries require scheme-specific values.

The landscape is already complicated by the use of and need for upper
and lower case values, so to bring matters inline with current practice
https_proxy is now required for HTTPS requests.

The new proxy handler incorporates a transition mechanism, which allows
http_proxy to be used for all requests when https_proxy is not set and
provides a `needsTransitionWarning` method for the main application.

Moving to scheme-specific environment variables means that a user may
set a single proxy for either HTTP or HTTPS requests. To accomodate this
situation during the transition period, an https_proxy value can be set
to an empty string which will prevent http_proxy being used for HTTPS
requests.
2024-04-17 14:34:26 +02:00
..
Fixtures Add support for "scripts-aliases" in composer.json (#11666) 2023-10-27 11:36:59 +02:00
Http Refactor proxy handling to require https_proxy (#11915) 2024-04-17 14:34:26 +02:00
AuthHelperTest.php Fix authentication issues with private bitbucket repos (#11464) 2023-05-23 23:14:11 +02:00
BitbucketTest.php Add IOMock and get rid of all withConsecutive calls in tests (#11497) 2023-06-07 14:35:16 +02:00
ConfigValidatorTest.php Add support for "scripts-aliases" in composer.json (#11666) 2023-10-27 11:36:59 +02:00
ErrorHandlerTest.php Fix CS (#11003) 2022-08-17 14:20:07 +02:00
FilesystemTest.php Fix broken junctions leading to installation failure on Windows (#11550) 2023-07-21 10:59:59 +02:00
GitHubTest.php Add IOMock and get rid of all withConsecutive calls in tests (#11497) 2023-06-07 14:35:16 +02:00
GitLabTest.php Add IOMock and get rid of all withConsecutive calls in tests (#11497) 2023-06-07 14:35:16 +02:00
GitTest.php [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
HttpDownloaderTest.php Fix CS (#11003) 2022-08-17 14:20:07 +02:00
IniHelperTest.php Fix CS (#11003) 2022-08-17 14:20:07 +02:00
MetadataMinifierTest.php Fix CS (#11003) 2022-08-17 14:20:07 +02:00
NoProxyPatternTest.php [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
PackageSorterTest.php [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
PerforceTest.php Fix CS (#11003) 2022-08-17 14:20:07 +02:00
PlatformTest.php Enable strict types on all files 2022-02-24 13:24:34 +01:00
ProcessExecutorTest.php Upgrade to react/promise 3.0.0 (#10429) 2023-07-20 12:52:28 +02:00
RemoteFilesystemTest.php Fix bitbucket redirect URLs failing old PHP builds which do not support long headers 2023-09-12 11:28:26 +02:00
SilencerTest.php Fix CS (#11003) 2022-08-17 14:20:07 +02:00
StreamContextFactoryTest.php [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
SvnTest.php [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
TarTest.php Enable strict types on all files 2022-02-24 13:24:34 +01:00
TlsHelperTest.php [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
UrlTest.php Update URL masking patterns for new GitHub fine-grained PATs 2022-10-25 15:07:24 +02:00
ZipTest.php Enable strict types on all files 2022-02-24 13:24:34 +01:00