Skip to content

Commit f2cc87e

Browse files
chore: allow phpunit 10 (#61)
* chore: allow phpunit 10 --------- Co-authored-by: Christopher Georg <[email protected]>
1 parent 37e9d92 commit f2cc87e

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

.github/workflows/code_checks.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ jobs:
5858
composer global config --no-plugins allow-plugins.symfony/flex true
5959
composer config extra.symfony.require "${{ matrix.symfony }}"
6060
61+
# remove this after support for symfony 3 is dropped
62+
- name: Remove PhpUnit 10 support for old Symfony Versions
63+
if: matrix.symfony == '^3.4' || matrix.symfony == '^4.0'
64+
run: composer require --no-update "phpunit/phpunit:^7|^8|^9"
65+
6166
- name: Install PHP dependencies
6267
run: composer install --no-interaction
6368

@@ -96,7 +101,7 @@ jobs:
96101
run: composer install --no-interaction
97102

98103
- name: Run code coverage
99-
run: vendor/bin/phpunit -v --coverage-text --coverage-clover=coverage.clover
104+
run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
100105

101106
- name: Send code coverage
102107
run: |

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
# Composer files
44
/composer.lock
55
/vendor
6+
.phpunit.result.cache
7+
.phpunit.cache

Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function testProcessedConfiguration($configs, $expectedConfig)
1919
self::assertSame($expectedConfig, $config);
2020
}
2121

22-
public function dataForProcessedConfiguration()
22+
public static function dataForProcessedConfiguration()
2323
{
2424
return [
2525
[

Tests/Validator/Constraints/Recaptcha3ValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function testInvalidCase($testToken)
6868
->assertRaised();
6969
}
7070

71-
public function invalidTokensProvider()
71+
public static function invalidTokensProvider()
7272
{
7373
return [
7474
['invalid-token'],
@@ -90,7 +90,7 @@ public function testEmptyCase($testToken)
9090
->assertRaised();
9191
}
9292

93-
public function emptyTokensProvider()
93+
public static function emptyTokensProvider()
9494
{
9595
return [
9696
[''],

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"twig/twig": "^2.9|^3.0"
4747
},
4848
"require-dev": {
49-
"phpunit/phpunit": "^7|^8|^9",
49+
"phpunit/phpunit": "^7|^8|^9|^10",
5050
"symfony/http-client": "^4.3|^5.0|^6.0"
5151
},
5252
"autoload": {

0 commit comments

Comments
 (0)