1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-08 16:17:37 +00:00
Commit graph

28 commits

Author SHA1 Message Date
Jordi Boggiano
6a466a120a
Enable strict types on all files 2022-02-24 13:24:34 +01:00
Jordi Boggiano
6da38f83a0
Add parameter types to all the things 2022-02-22 16:48:53 +01:00
Jordi Boggiano
abdc6893a6
Add void types where no return statement is present 2022-02-18 10:38:54 +01:00
Jordi Boggiano
2a771dfb2d
Update PHPUnit to 8.5 2022-01-01 14:54:19 +01:00
Martin Herndl
d51c7685da
Add types to Repository tests (#10227) 2021-10-27 15:29:52 +02:00
Jordi Boggiano
c3c6969cf5
Type annotations 2021-10-16 10:25:12 +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
03b8c3db3f
Merge branch '1.10' 2020-10-08 14:38:41 +02:00
Nicolas Grekas
f9913205dd Fix VcsRepositoryTest 2020-10-08 11:06:39 +02:00
Jordi Boggiano
22622372bc
Fix complete test suite for v2 2020-05-06 13:23:52 +02:00
Jordi Boggiano
799717f102
Tweak and fix some more phpstan reports 2019-02-18 13:05:14 +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
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
Jérôme Tamarelle
836986faf3 Add temp composer home for GitDriver test using cache 2013-10-10 22:57:03 +02:00
Jordi Boggiano
27898c4c31 Suppress errors from mkdir calls that are checked for failure 2013-02-20 14:51:15 +01:00
Jordi Boggiano
1e15edc43d Fix repository test 2013-02-18 08:34:23 +01:00
Jordi Boggiano
940c2a079d Show failures more clearly in test setup 2013-02-16 00:15:18 +01:00
Filippo Tessarotto
470adc47df Switched rand() to mt_rand() 2013-01-30 10:44:07 +01:00
Jordi Boggiano
4b18be75d7 Add test for fancy branch names, refs #935 2012-08-24 00:43:40 +02:00
Grégoire Pineau
f4e9dd4fb8 Fixed PSR rules 2012-06-14 12:10:01 +02:00
Jordi Boggiano
6967ec16b3 Add slow tests to slow group, excluded by default except for travis 2012-05-06 15:10:13 +02:00
Jerome Tamarelle
610f15a768 Fix unit tests for VcsRepository 2012-04-27 11:03:57 +02:00
Jordi Boggiano
595182aec0 Add/fix tests 2012-04-13 02:47:55 +02:00
Jordi Boggiano
1d544630b6 Allow requesting a particular vcs driver to bypass github/bitbucket ones 2012-03-09 18:33:04 +01:00
till
23902023e5 fix namespace 2012-03-08 14:17:22 +01:00
Jordi Boggiano
ae7107fc22 Add more test requirements 2012-02-19 16:57:28 +01:00
Jordi Boggiano
a175ebed33 Add failing test for new dev behavior 2012-02-19 16:57:26 +01:00