Skip to content

Commit 84276b2

Browse files
committed
Use Paratest again
1 parent 7a0c437 commit 84276b2

File tree

5 files changed

+2658
-12
lines changed

5 files changed

+2658
-12
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ jobs:
182182
- name: "Install dependencies"
183183
run: "composer install --no-interaction --no-progress"
184184

185+
- name: "Downgrade PHPUnit with Paratest"
186+
shell: bash
187+
run: "composer require --dev phpunit/phpunit:^9.6 brianium/paratest:^6.5 --update-with-dependencies --ignore-platform-reqs --working-dir=tests"
188+
185189
- name: "Transform source code"
186190
shell: bash
187191
run: |
@@ -190,4 +194,4 @@ jobs:
190194
composer dump
191195
192196
- name: "Tests"
193-
run: "make tests-coverage"
197+
run: "make tests"

Makefile

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,14 @@
22

33
build: cs tests phpstan
44

5-
tests:
6-
XDEBUG_MODE=off php vendor/bin/paratest --runner WrapperRunner --no-coverage
5+
tests: install-paratest
6+
XDEBUG_MODE=off php tests/vendor/bin/paratest --runner WrapperRunner --no-coverage
77

8-
tests-integration:
9-
php vendor/bin/paratest --runner WrapperRunner --no-coverage --group exec
10-
11-
tests-levels:
12-
php vendor/bin/paratest --runner WrapperRunner --no-coverage --group levels
13-
14-
tests-coverage:
15-
php vendor/bin/paratest --runner WrapperRunner
8+
tests-integration: install-paratest
9+
php tests/vendor/bin/paratest --runner WrapperRunner --no-coverage --group exec
1610

1711
tests-golden-reflection:
18-
php vendor/bin/paratest --runner WrapperRunner --no-coverage tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php
12+
php vendor/bin/phpunit tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php
1913

2014
lint:
2115
XDEBUG_MODE=off php vendor/bin/parallel-lint --colors \
@@ -113,6 +107,9 @@ lint:
113107
--exclude tests/PHPStan/Rules/Playground/data/promote-missing-override.php \
114108
src tests
115109

110+
install-paratest:
111+
composer install --working-dir tests
112+
116113
cs:
117114
composer install --working-dir build-cs && XDEBUG_MODE=off php build-cs/vendor/bin/phpcs
118115

tests/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor

tests/composer.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"require-dev": {
3+
"phpunit/phpunit": "^10.5",
4+
"brianium/paratest": "~7.3.0"
5+
},
6+
"config": {
7+
"platform": {
8+
"php": "8.1.99"
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)