Jordi Boggiano
c3c6969cf5
Type annotations
2021-10-16 10:25:12 +02:00
Jordi Boggiano
d3c176ec69
PHPStan Level 5 ( #10070 )
...
* Bump PHPStan to level 5
* Update seld/phar-utils to latest
* Add phpstan-setup / phpstan scripts
2021-08-21 17:41:52 +02:00
Robert Rhoades
2ced7b0bf8
Fix git init -b being unavailable for older versions
...
On older versions of git init doesn't have the -b flag. That
was introduced in v2.28.0.
Instead switch to using git checkout -b which has much
wider support (2.4.12 was as far back as I could check on
the docs).
2020-10-30 16:58:32 +00:00
Robert Rhoades
e6c7ab693e
Fix running tests with non standard default branch
...
When the global git config has init.defaultbranch set to
something other than master the tests fail. This is because
the tests assume that the default branch is called master
but that may not be the case.
This fixes the tests by ensuring that when running git init
we ensure the default branch is called master regardless of
how git is configured.
2020-10-29 21:16:11 +00:00
Jordi Boggiano
d942c65e0c
Fix more warnings
2020-09-11 11:32:09 +02:00
Jordi Boggiano
a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks
2020-06-04 16:08:23 +02:00
Jordi Boggiano
169fb2347a
Avoid issues with git signatures when running tests
2019-02-18 17:00:57 +01:00
Jordi Boggiano
3dfcae99a9
Add parallel download capability to FileDownloader and derivatives
2019-01-18 08:39:03 +01:00
Jordi Boggiano
713bc4de1d
Minor fixes and updated the rest of the code/tests to use HttpDownloader
2019-01-14 17:29:23 +01:00
Vladimir Reznichenko
c8615358cb
SCA with PHP Inspections (EA Extended)
2017-09-11 19:40:43 +02:00
AnrDaemon
ab70601700
Skip git-related tests if no git found.
2016-12-22 20:14:57 +03:00
Jordi Boggiano
3d9daea6a0
CS fixes
2015-10-25 15:19:15 +00:00
MakiCode
1c0b9cd65f
Removed test for non-string file name check
2015-10-12 10:20:45 -05:00
MakiCode
63ede6c9dd
Fixed issues with PR
2015-10-07 12:42:19 -05:00
MakiCode
0d00338bdb
Added better messages and fixed bugs
2015-10-04 20:03:06 -05:00
MakiCode
906c1c2e66
Added check for filename in archive manager and added test
2015-10-04 19:53:07 -05:00
David Prévot
e5ede671d2
Config Git repository user
...
One can’t assume a Git user is already setup for the tests.
2015-02-16 11:55:56 -04:00
Jordi Boggiano
94926218e8
CS fixes
2014-10-17 18:57:27 +01:00
Morgan BRUNOT
ca7cb68dd5
Check exclude from downloaded composer.json
2013-12-05 16:03:48 +01:00
Jordi Boggiano
11a0d16ccc
CS fixes
2013-10-11 20:12:45 -03:00
Jan Prieser
c6db86e444
cleanup temporary download location when archiving
2013-07-17 13:28:15 +02:00
Jordi Boggiano
8d0b7f278e
CS fixes
2013-06-13 13:28:24 +02:00
Jordi Boggiano
fc54a48b52
Fix archiver tests on windows
2013-04-02 11:32:11 +02:00
Nils Adermann
4af69c85ca
Fix tests by passing proper working directory to processes
2013-03-28 13:33:40 +01:00
Nils Adermann
deae50392f
Respect gitignore, gitattributes and hgignore files in archiving
2013-03-28 12:49:53 +01:00
Nils Adermann
33828b38df
Use a saner file name for package archives
2013-03-28 12:49:52 +01:00
Nils Adermann
ba51027680
Reorder ArchiveManager parameters to make the download manager optional
2013-03-28 12:49:52 +01:00
Matthieu Moquet
a2b404e421
Cleaned archiver tests
2013-03-28 12:49:52 +01:00
Matthieu Moquet
c248115e04
Fix how download manager is constructed
...
This fixes tests due to upstream changes.
The createDownloadManager in the Factory now takes the config as extra
parameter.
2013-03-28 12:49:52 +01:00
Matthieu Moquet
60b1cc7d24
Create ArchiveManager with the Factory
2013-03-28 12:49:52 +01:00
Matthieu Moquet
a733d76b33
Merged zip & tar archivers
2013-03-28 12:49:52 +01:00
Matthieu Moquet
20e717f975
Refactored the archiver package
2013-03-28 12:49:52 +01:00