Stephan
cf8ea3c70e
GitHubDriver: better handle empty composer.json file ( #11552 )
2023-07-21 11:09:32 +02:00
Stephan
685a2e6be2
Composer support string ( #11386 )
...
* GitHubDriver: fix support is set to string
* GitLabDriver: fix support is set to string
* BitbucketDriver: fix support is set to string
* Fix PHPStan
2023-03-20 20:18:19 +01:00
Ion Bazan
8ff237afb6
[Tests] Use static data providers ( #11197 )
2022-11-24 14:39:08 +01:00
Jordi Boggiano
6c85b875f2
Update to PHPStan 1.9
2022-11-03 21:53:42 +01:00
Jordi Boggiano
131da999ac
Fix CS ( #11003 )
2022-08-17 14:20:07 +02:00
Jordi Boggiano
550fc3d321
Merge branch '2.2' into 2.3
2022-08-16 11:27:34 +02:00
Jordi Boggiano
f2141dd3ea
Fix tests from #10985
2022-08-16 11:25:15 +02:00
Stephan
1f0bd51f55
GitHubDriver: stricter URL validation to avoid issues with undefined index owner ( #10985 )
2022-08-16 11:08:03 +02:00
Jordi Boggiano
fdab6657c7
Add command testing utilities to TestCase, add tests for ConfigCommand
2022-05-11 16:08:39 +02:00
Jordi Boggiano
b0665981c2
Parallellize the branch comparisons to speed up bootstrapping/version guessing when on a feature branch ( #10632 )
...
* Parallellize the branch comparisons to speed up bootstrapping/version guessing when on a feature branch, fixes #10568
* Allow ProcessExecutorMock to function with async calls
2022-03-17 14:52:14 +01:00
Jordi Boggiano
6a466a120a
Enable strict types on all files
2022-02-24 13:24:34 +01:00
Jordi Boggiano
7abc8da7d3
Add more types
2022-02-23 11:37:32 +01:00
Jordi Boggiano
6da38f83a0
Add parameter types to all the things
2022-02-22 16:48:53 +01:00
Jordi Boggiano
a16ed3d0ed
Add return types to private/internal methods
2022-02-18 11:22:01 +01:00
Jordi Boggiano
abdc6893a6
Add void types where no return statement is present
2022-02-18 10:38:54 +01:00
Jordi Boggiano
86fb8d4412
Fix CS
2022-02-18 08:50:11 +01:00
Jordi Boggiano
63b5f2737b
Merge branch '2.2' into main
2022-02-16 13:44:40 +01:00
Stephan
3eb12efae5
VcsRepositories: handle initialize with invalid repository URL ( #10525 )
2022-02-16 09:37:36 +01:00
Jordi Boggiano
bf1ad4d240
Make sure test runs in isolated dir
2022-01-21 16:15:28 +01:00
Jordi Boggiano
ffd62795bc
Get rid of all the ->at() mock invocations
2022-01-01 14:54:20 +01:00
Jordi Boggiano
2a771dfb2d
Update PHPUnit to 8.5
2022-01-01 14:54:19 +01:00
Jordi Boggiano
44b69ba77f
Upgrade php-cs-fixer to 3.x and fix CS
2021-10-27 16:21:45 +02:00
Martin Herndl
d51c7685da
Add types to `Repository` tests ( #10227 )
2021-10-27 15:29:52 +02:00
Jordi Boggiano
a586a753df
Fix all remaining php8.1 test suite deprecations
2021-08-19 13:00:30 +02:00
Jordi Boggiano
b7d770659b
CS fixes
2020-11-22 14:52:39 +01:00
Jordi Boggiano
9cab8c10cc
Merge branch 'master' into 2.0
2020-02-28 13:31:56 +01:00
Ion Bazan
a2137d5263
use Symfony PHPUnit Bridge
2020-02-07 12:22:22 +08:00
Jordi Boggiano
4a7d42604f
Fix tests
2020-01-14 16:27:16 +01:00
Jordi Boggiano
a5b178084c
Merge branch 'master' into 2.0
2020-01-14 15:39:35 +01:00
Stephan Vock
731d94a2a3
VcsRepositories: mark archived repositories as abandoned
2020-01-04 17:01:27 +00:00
Jordi Boggiano
f946d8eb5a
More RemoteFilesystem usage removals and some repository/vcs driver refactorings
2019-01-14 17:29:23 +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
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
2018-11-12 15:23:32 +01:00
Jordi Boggiano
066351c5b9
Remove use of deprecated getMock method
2018-04-12 10:24:56 +02:00
Rob Bast
dc2f201152
add trailing / and updated diagnose command
2016-02-24 20:54:01 +01:00
Rob Bast
4d975c49aa
fix mocks
2016-02-24 20:30:10 +01:00
Rob Bast
adf3b956d0
try to use unique test directories
...
any tests that use the filesystem should have their own unique directory, as we run our test suite in parallel and
cleanup of tests (removing directories) should not interfere with currently running tests
2016-01-26 09:41:21 +01:00
Jordi Boggiano
52d290f5f2
trim token just in case and update tests
2015-05-07 00:37:08 +01:00
Rob Bast
a34335a9bb
github deprecation changes
...
- added some tests
- minor bug fixes discovered during testing
- resolved two deprecations (rate limit api and authorizations api)
- added some more comments to make the flow more understandable
2015-02-11 10:18:47 +01:00
Jordi Boggiano
d5294ef91b
Update repo url from github and handle trailing slashes, refs composer/packagist#354 refs composer/packagist#423
2014-07-19 18:40:01 +02:00
Jordi Boggiano
90d1b6e08a
Rename basic-auth to http-basic, add docs/schema/config support, add local auth file support, add storage to auth.json, add store-auths config option, refs #1862
2014-05-27 13:50:47 +02:00
Jordi Boggiano
0d4c2bb7d7
Fix github test
2014-02-26 17:38:58 +01:00
Nils Adermann
1ccf4b0fc3
Correct the tests for dist urls for github
2014-02-24 19:51:03 +01:00
Jordi Boggiano
d017e3f209
Adjust GitDriver tag parsing to resolve to SHAs
2013-08-19 01:21:45 +02:00
Jordi Boggiano
e0051a4652
Update tests
2013-08-18 23:03:48 +02:00
Jordi Boggiano
259a25344d
Use the api to get file contents instead of raw.github.com
...
raw.github does not like the access_token query param
2013-02-27 14:10:28 +01:00
Jordi Boggiano
80c18db694
Fix tests
2013-02-13 12:59:16 +01:00
Jordi Boggiano
432955e0ae
Fix github url escaping, raw.github.com doesnt like escaped slashes
2013-02-11 09:34:50 +01:00
Jordi Boggiano
224934831d
Change all github archive URLs to API URLs and handle fallback for those to nodeload
2012-12-05 19:20:52 +01:00
Chris Smith
e3838bbc1f
Update tests to expect correct URLs for private dist downloads
2012-12-05 18:55:25 +01:00