Jordi Boggiano
6a466a120a
Enable strict types on all files
3 years ago
Jordi Boggiano
6da38f83a0
Add parameter types to all the things
3 years ago
Jordi Boggiano
abdc6893a6
Add void types where no return statement is present
3 years ago
Jordi Boggiano
2a771dfb2d
Update PHPUnit to 8.5
3 years ago
Martin Herndl
d51c7685da
Add types to `Repository` tests ( #10227 )
3 years ago
Jordi Boggiano
c3c6969cf5
Type annotations
3 years ago
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).
4 years ago
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.
4 years ago
Jordi Boggiano
03b8c3db3f
Merge branch '1.10'
4 years ago
Nicolas Grekas
f9913205dd
Fix VcsRepositoryTest
4 years ago
Jordi Boggiano
22622372bc
Fix complete test suite for v2
4 years ago
Jordi Boggiano
799717f102
Tweak and fix some more phpstan reports
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
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
9 years ago
Jérôme Tamarelle
836986faf3
Add temp composer home for GitDriver test using cache
11 years ago
Jordi Boggiano
27898c4c31
Suppress errors from mkdir calls that are checked for failure
12 years ago
Jordi Boggiano
1e15edc43d
Fix repository test
12 years ago
Jordi Boggiano
940c2a079d
Show failures more clearly in test setup
12 years ago
Filippo Tessarotto
470adc47df
Switched rand() to mt_rand()
12 years ago
Jordi Boggiano
4b18be75d7
Add test for fancy branch names, refs #935
12 years ago
Grégoire Pineau
f4e9dd4fb8
Fixed PSR rules
12 years ago
Jordi Boggiano
6967ec16b3
Add slow tests to slow group, excluded by default except for travis
13 years ago
Jerome Tamarelle
610f15a768
Fix unit tests for VcsRepository
13 years ago
Jordi Boggiano
595182aec0
Add/fix tests
13 years ago
Jordi Boggiano
1d544630b6
Allow requesting a particular vcs driver to bypass github/bitbucket ones
13 years ago
till
23902023e5
fix namespace
13 years ago
Jordi Boggiano
ae7107fc22
Add more test requirements
13 years ago
Jordi Boggiano
a175ebed33
Add failing test for new dev behavior
13 years ago