Michael Chekin
6d9bf42655
Additional Util\RemoteFileSystem tests ( #8960 )
...
* RemoteFilesystemTest: simplifying some mock expectations calls
- will($this->returnValue()) to willReturn()
- will($this->returnCallBack()) to willReturnCallback()
* RemoteFilesystemTest: extracting identical mocks for IOInterface into a separate getIOInterfaceMock() method
* RemoteFilesystemTest: converting protected helper methods to private.
* RemoteFilesystemTest: moving getConfigMock() private method after the public methods (with other private methods)
* adding RemoteFileSystemTest::testCopyWithRetryAuthFailureFalse() unit test.
* Allow optional injecting of AuthHelper into RemoteFilesystem constructor.
* adding RemoteFileSystemTest::testCopyWithSuccessOnRetry() unit test.
* using backward compatible @expectedException in RemoteFilesystemTest.php
* RemoteFilesystemTest: extracting RemoteFilesystem with mocked method creation into a separate method.
* RemoteFilesystemTest: extracting AuthHelper with mocked method creation into a separate method.
4 years ago
Fränz Friederes
5c13c97428
Implement type and context properties in PreFileDownloadEvent
4 years ago
Michael Stucki
ae59047166
Clean Git repos during discard
4 years ago
Fränz Friederes
907367ff43
Fix PHPDoc issue
4 years ago
johnstevenson
54debe8210
Respect disable-tls in Versions::getLatest
...
Use http to get the latest version when disable-tls is true and error-
trap DiagnoseCommand::checkVersion so that all checks can complete.
Fixes #8657 .
4 years ago
Jordi Boggiano
a17bbec842
Avoid double warnings about composer.json when running outdated, fixes #8958
4 years ago
Fränz Friederes
13bdf8553a
Add setProcessedUrl method to PreFileDownloadEvent
4 years ago
Graham Campbell
a97d13fc6d
Fixed typo
...
Co-authored-by: ZhangWei <zhwei.yes@gmail.com>
4 years ago
Graham Campbell
491067f253
Fixed wording
4 years ago
Graham Campbell
fa799970ad
Replace whitelist with allow list
4 years ago
Thomas Lamy
caa5545478
#8945 Add "--no-dev" to outdated/show commands
4 years ago
Jordi Boggiano
9d5051faac
Merge branch '1.10'
4 years ago
Jordi Boggiano
6630519882
Fix #8298 for COMPOSER_DEV_MODE
4 years ago
Jordi Boggiano
662d6d8351
Update lock file
4 years ago
Jordi Boggiano
29ec10d95c
Fix output formatting
4 years ago
Nils Adermann
f15b9c258e
Merge pull request #8949 from Seldaek/cleanups
...
Cleanups / docblocks
4 years ago
Jordi Boggiano
f7df96f968
Allow php8 for Composer 2
4 years ago
Jordi Boggiano
90425a6a50
Add upgrade note for custom installers
4 years ago
Jordi Boggiano
56b4667db0
Merge pull request #8950 from Ayesh/issue/8946
...
Platform Check: Add a special case for `zend-opcache`
4 years ago
Thomas Lamy
d4e5135d0f
Merge pull request #1 from composer/master
...
Pull upstream
4 years ago
Ayesh Karunaratne
71ddc487fe
Platform Check: Add a special case for `zend-opcache`.
...
Ref #8946
The platform-check feature maps `ext-X` to `extension_loaded('X')` calls.
While most of the extensions can be tested this way, the `zend-opcache`
extension requires `zend opcache` to be probed instead of the `zend-opcache`
name.
This commit adds a special case for `zend-opcache` to use the correct name
in `extension_loaded()` calls in generated `platform_check.php` file.
4 years ago
Jordi Boggiano
c9571f90b4
Run phpstan with regular output and then run again to cs2pr if there was an error, to keep usable output in CI logs
4 years ago
Jordi Boggiano
a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks
4 years ago
Jordi Boggiano
627afe78ca
Merge pull request #8948 from johnstevenson/xdebug-handler-1.4.2
...
Update xdebug-handler to 1.4.2
4 years ago
johnstevenson
26c7234a0d
Update xdebug-handler to 1.4.2
4 years ago
Jordi Boggiano
5761228068
Make installer classes forward promises from downloaders to InstallationManager
4 years ago
Jordi Boggiano
816d8e9d1b
Fix phpstan error
4 years ago
Jordi Boggiano
90bd351b8b
Allow downgrades to go through even though the target dir for archive extraction exists
4 years ago
Jordi Boggiano
63041fbf50
Add missing class
4 years ago
Jordi Boggiano
02059d96e7
Fail early if an archive extraction is going to fail at install/update stage to avoid leaving the vendor dir in a half up to date state
4 years ago
Jordi Boggiano
396ad87fd0
Add handling of ctrl-C on windows for php 7.4+
4 years ago
Jordi Boggiano
29761cf78d
Update lock
4 years ago
Jordi Boggiano
a66a939b76
Merge pull request #8937 from Seldaek/optim-rules
...
Optimize rule creation for alias packages
4 years ago
Jordi Boggiano
bf4a659f2a
Update changelog
4 years ago
Jordi Boggiano
8a9340c2d2
Merge pull request #8944 from staabm/patch-2
...
Added docs for glob pattern support in classmaps
4 years ago
Jordi Boggiano
5ef7765cbd
Merge pull request #8923 from staabm/glob-classmap
...
Autoload-Generator: support glob patterns in classmaps
4 years ago
Jordi Boggiano
501b06323d
Fix wording
4 years ago
Markus Staab
50944e1c42
Added docs for glob pattern support in classmaps
4 years ago
Jordi Boggiano
242b48eae4
Merge branch '1.10'
4 years ago
Jordi Boggiano
2a9768a743
Update changelog/upgrade guide for 2.0.0-alpha1
4 years ago
Jordi Boggiano
ccea1b95a8
Fix pretty constraint for --with overrides
4 years ago
Jordi Boggiano
7507b87fb3
Remove stray var_dump
4 years ago
Jordi Boggiano
81c6fe987b
Remove empty env var
4 years ago
Jordi Boggiano
2490a857cb
Bump phpunit-bridge version
4 years ago
Jordi Boggiano
50ab8a7b5f
Merge branch '1.10'
4 years ago
Jordi Boggiano
547763ab67
Update changelog
4 years ago
Jordi Boggiano
93502eed68
Add powershell instructions, fixes #8883
4 years ago
Jordi Boggiano
8d3ec0f718
Do not reverse sorted packages, fixes #8320
4 years ago
Jordi Boggiano
fafa959933
Add test to assert prefer-lowest behavior when conflicting branches prevent absolute lowest version from being installed, closes #7408
4 years ago
Nils Adermann
36f3982285
Merge pull request #8942 from Seldaek/pool-builder-unfixing
...
Fix unfixing of packages when a replacer gets unfixed before a replacee
4 years ago