1
0
Fork 0
composer/tests/Composer/Test
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
..
Advisory Introduce COMPOSER_AUDIT_ABANDONED env var (#11794) 2024-02-07 22:13:36 +01:00
Autoload Fix autoload generator dump() non-BC signature change in 2.6.4 2023-10-06 09:34:10 +02:00
Command Fix show command output to remove v prefixes on versions, making for more uniform output, fixes #11925 2024-04-15 13:23:25 +02:00
Config [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
Console Fix CS (#11003) 2022-08-17 14:20:07 +02:00
DependencyResolver Add --minimal-changes mode to perform partial updates --with-dependencies while changing only what is necessary in other dependencies (#11665) 2023-10-26 10:25:04 +02:00
Downloader PHP 8.3 | Tests: fix deprecation notices (#11599) 2023-08-30 11:42:33 +02:00
EventDispatcher Add IOMock and get rid of all withConsecutive calls in tests (#11497) 2023-06-07 14:35:16 +02:00
Filter/PlatformRequirementFilter Fix warnings incorrectly being shown when using require with upper bound ignored on platform requirements, fixes #11722 (#11786) 2024-01-08 14:48:24 +01:00
Fixtures Add support for php extension packages (#11795) 2024-03-20 22:04:58 +01:00
IO Add IOMock and get rid of all withConsecutive calls in tests (#11497) 2023-06-07 14:35:16 +02:00
Installer Revert "Set $_SERVER['SCRIPT_NAME'] within proxy command (#11562)" (#11617) 2023-09-03 13:39:48 +02:00
Json Preserve indentation when writing JSON files (#11390) 2023-07-19 14:13:06 +02:00
Mock Audit: ignores configured repository options (#11173) 2023-08-29 15:16:34 +02:00
Package ValidatingArrayLoader: fix link validation with missing name (#11830) 2024-02-06 17:18:41 +01:00
Platform [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
Plugin [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
Question [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
Repository Merge pull request from GHSA-7c6p-848j-wh5h 2024-02-08 14:33:59 +01:00
Script Fix CS (#11003) 2022-08-17 14:20:07 +02:00
Util Refactor proxy handling to require https_proxy (#11915) 2024-04-17 14:34:26 +02:00
AllFunctionalTest.php Add tests for SelfUpdateCommand (#11816) 2024-02-21 20:59:50 +01:00
ApplicationTest.php Fix CS (#11003) 2022-08-17 14:20:07 +02:00
CacheTest.php Fix CS (#11003) 2022-08-17 14:20:07 +02:00
CompletionFunctionalTest.php [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
ComposerTest.php Fix CS (#11003) 2022-08-17 14:20:07 +02:00
ConfigTest.php Introduce COMPOSER_AUDIT_ABANDONED env var (#11794) 2024-02-07 22:13:36 +01:00
DefaultConfigTest.php Enable strict types on all files 2022-02-24 13:24:34 +01:00
DocumentationTest.php Add support for Application::setCatchErrors in symfony 6.4+, refs symfony/symfony#50420 2023-07-28 19:33:33 +02:00
FactoryTest.php Enable strict types on all files 2022-02-24 13:24:34 +01:00
InstalledVersionsTest.php Merge pull request from GHSA-7c6p-848j-wh5h 2024-02-08 14:33:59 +01:00
InstallerTest.php Add COMPOSER_FUND=0 env var to disable calls for funding (#11779) 2024-01-08 15:10:49 +01:00
TestCase.php Update tests 2024-02-07 22:37:22 +01:00