Jordi Boggiano
cb0293cf30
Finalize phpstan level 6 for tests dir, closes #10159
3 years ago
megubyte
8b7e2b600d
phpstan: update tests/Composer/Test/Downloader/* to level 6 standard ( #10238 )
3 years ago
Jordi Boggiano
44b69ba77f
Upgrade php-cs-fixer to 3.x and fix CS
3 years ago
Jordi Boggiano
cf7fa7087c
Fix test
3 years ago
Jordi Boggiano
2828ce59cf
Merge branch '1.10'
3 years ago
John Stevenson
0783b043d2
Fix Windows escaping in tests
3 years ago
John Stevenson
8f974fe741
Improve Windows escaping
3 years ago
Jordi Boggiano
ca5e2f8d50
Fix escaping issues on Windows which could lead to command injection, fixes GHSA-frqg-7g38-6gcf
3 years ago
Jordi Boggiano
b77fce8a4f
More deprecation fixes by using ProcessExecutorMock and a couple of PackageInterface type fixes
3 years ago
Jordi Boggiano
6aa2d15868
Introduce ProcessExecutorMock to fix deprecations and amount of mocking pain
3 years ago
Jordi Boggiano
5062619046
Fix deprecation warnings with strpos receiving null
3 years ago
Jordi Boggiano
40c7a725e1
Merge branch '2.0'
3 years ago
Jordi Boggiano
332c46af8b
Merge pull request from GHSA-h5h8-pc6h-jvvx
...
* Fix external process calls to avoid user input being able to pass extra parameters
* Tweak some fixes
3 years ago
Jordi Boggiano
083b73515d
Merge pull request from GHSA-h5h8-pc6h-jvvx
...
* Fix external process calls to avoid user input being able to pass extra parameters
* Tweak some fixes
3 years ago
Jordi Boggiano
46dde9453b
Fix tests
4 years ago
Markus Staab
4a6f1792ea
adjusted test expectations
4 years ago
Jordi Boggiano
b7d770659b
CS fixes
4 years ago
Jordi Boggiano
1593b67230
Fix warnings on higher phpunit versions
4 years ago
Jordi Boggiano
7bcde1481d
Fix git downloader syntax for windows cmd when updating packages, fixes #9089
4 years ago
Jordi Boggiano
f70d527f4f
Fix git tests
4 years ago
Jordi Boggiano
04381c70fe
Merge branch '1.10'
4 years ago
Jordi Boggiano
fb7fc4a4ca
Fix git tests
4 years ago
Jordi Boggiano
5d8dc48bd4
Fix test on windows
5 years ago
Jordi Boggiano
23efda9155
Try to fix windows build
5 years ago
Jordi Boggiano
7e142b5d6b
Use Upgrading for package installs too
5 years ago
Jordi Boggiano
45ecbae8f5
Merge branch 'master' into 2.0
5 years ago
Ion Bazan
58b34d13e8
fix risky tests (without any assertion)
5 years ago
Ion Bazan
a2137d5263
use Symfony PHPUnit Bridge
5 years ago
Jordi Boggiano
de189c1b80
Fix deps=high build
5 years ago
Jordi Boggiano
88b051c96b
Merge branch 'master' into 2.0
...
Update deps
5 years ago
johnstevenson
7e649fac41
Fix Windows test regression from commit 149250a
...
Commit: 149250ab92
ProcessExecutor::escape handled a false value inconsistently across
platforms, returning an emtpy string on Windows, otherwise `''`. This
is fixed to return `""` on Windows.
The GitDownloaderTest code has been appropriately updated.
5 years ago
Jordi Boggiano
f867c407c7
Merge branch 'master' into 2.0
5 years ago
Jordi Boggiano
149250ab92
Remove credentials from git remotes in cache and vendor dirs
...
This only removes the credentials if they are managed by composer auth.json or equivalent, if the credentials were present in the package URL to begin with they might remain
Refs #8293
Fixes #3644
Closes #3608
5 years ago
Jordi Boggiano
53d2ab2253
Split up steps on VCS downloaders to allow doing network operations before touching the filesystem on GitDownloader, fixes #7903
5 years ago
Jordi Boggiano
0caa616e6c
Fix test warnings
6 years ago
Jordi Boggiano
3dfcae99a9
Add parallel download capability to FileDownloader and derivatives
6 years ago
Gabriel Caruso
2a13bb2649
Fixes from PHPStan ( #7687 )
...
* fix docblocks
* remove redundant conditional
* fix wrong variable name
* fix wrong namespaces
* add missing private members
* remove unused/redundant arguments
* move testcase class
* exclude TestCase.php
* Tweak RuleWatchGraph type hints
* Tweak doc comment
6 years ago
Gabriel Caruso
a17f051e29
Remove useless parentheses
6 years ago
Jordi Boggiano
c917865fe9
Fix handling of dev versions and consolidate logic, refs #7119
7 years ago
Jordi Boggiano
24ad6307a7
Merge remote-tracking branch 'austris-argalis/issue-7085'
7 years ago
Jordi Boggiano
066351c5b9
Remove use of deprecated getMock method
7 years ago
austris argalis
8a5645ffda
Wording: Downgrading instead of Updating #7085
7 years ago
Jordi Boggiano
50665aa18d
Simplify check for current revision, refs #6684
7 years ago
Robert Lu
3ce71a55bf
fix unittest
7 years ago
Jordi Boggiano
122e422682
CS fixes
8 years ago
AnrDaemon
1d2a949e3e
Properly fix git excludes.
...
Mindless copy-paste never gets old. Sorry. This is fixed proper this time.
8 years ago
AnrDaemon
ab70601700
Skip git-related tests if no git found.
8 years ago
Richard Heelin
c2f6c61f56
Updated the tests to match the new command that is executed
8 years ago
Jordi Boggiano
334d0cce6b
Make sure we do not clone from local mirror if mirroring failed
8 years ago
Jordi Boggiano
4998ee27b3
Re-use mirror code from the git driver, refs #5384
8 years ago