Skip to content

Commit 7b57576

Browse files
authored
chore: bump dependencies (#659)
* ci: bump versions * fix * fix ci * bump deps * try * remove 8.0 * remove 8.0
1 parent 377bb85 commit 7b57576

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

.github/workflows/ci.yml

+15-15
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ jobs:
3131
- name: Setup PHP
3232
uses: shivammathur/setup-php@v2
3333
with:
34-
php-version: '8.3'
34+
php-version: '8.4'
3535
tools: phpstan,flex
3636
extensions: zip
3737

3838
- name: Install dependencies
3939
uses: ramsey/composer-install@v3
4040
env:
41-
SYMFONY_REQUIRE: 7.0.*
41+
SYMFONY_REQUIRE: ^7
4242

4343
- name: Install PHPUnit dependencies
4444
run: vendor/bin/simple-phpunit --version
@@ -50,7 +50,7 @@ jobs:
5050
runs-on: ubuntu-latest
5151
strategy:
5252
matrix:
53-
php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4']
53+
php-versions: ['8.1', '8.2', '8.3', '8.4']
5454
fail-fast: false
5555
name: PHP ${{ matrix.php-versions }} Test on ubuntu-latest
5656
steps:
@@ -73,7 +73,7 @@ jobs:
7373
runs-on: ubuntu-latest
7474
strategy:
7575
matrix:
76-
php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4']
76+
php-versions: ['8.1', '8.2', '8.3', '8.4']
7777
fail-fast: false
7878
name: PHP ${{ matrix.php-versions }} Test dev dependencies on ubuntu-latest
7979
steps:
@@ -97,15 +97,15 @@ jobs:
9797

9898
phpunit-lowest:
9999
runs-on: ubuntu-latest
100-
name: PHP 8.3 (lowest) Test on ubuntu-latest
100+
name: PHP 8.4 (lowest) Test on ubuntu-latest
101101
steps:
102102
- name: Checkout
103103
uses: actions/checkout@v4
104104

105105
- name: Setup PHP
106106
uses: shivammathur/setup-php@v2
107107
with:
108-
php-version: '8.3'
108+
php-version: '8.4'
109109
extensions: zip
110110

111111
- name: Install dependencies
@@ -115,12 +115,12 @@ jobs:
115115

116116
- name: Run tests
117117
env:
118-
SYMFONY_DEPRECATIONS_HELPER: max[total]=9223372036854775807 # PHP_INT_MAX
118+
SYMFONY_DEPRECATIONS_HELPER: "disabled=1"
119119
run: vendor/bin/simple-phpunit
120120

121121
phpunit-windows:
122122
runs-on: windows-latest
123-
name: PHP 8.3 Test on windows-latest
123+
name: PHP 8.4 Test on windows-latest
124124
env:
125125
PANTHER_FIREFOX_BINARY: 'C:\Program Files\Mozilla Firefox\firefox.exe'
126126
SKIP_FIREFOX: 1
@@ -131,7 +131,7 @@ jobs:
131131
- name: Setup PHP
132132
uses: shivammathur/setup-php@v2
133133
with:
134-
php-version: '8.3'
134+
php-version: '8.4'
135135
extensions: zip
136136

137137
- name: Install dependencies
@@ -142,15 +142,15 @@ jobs:
142142

143143
phpunit-macos:
144144
runs-on: macos-latest
145-
name: PHP 8.3 Test on macos-latest
145+
name: PHP 8.4 Test on macos-latest
146146
steps:
147147
- name: Checkout
148148
uses: actions/checkout@v4
149149

150150
- name: Setup PHP
151151
uses: shivammathur/setup-php@v2
152152
with:
153-
php-version: '8.3'
153+
php-version: '8.4'
154154
extensions: zip
155155

156156
- name: Install Firefox
@@ -171,7 +171,7 @@ jobs:
171171
matrix:
172172
php-versions: [ '8.1', '8.2', '8.3', '8.4']
173173
fail-fast: false
174-
name: PHP ${{ matrix.php-versions }} (phpunit 10) Test on ubuntu-latest
174+
name: PHP ${{ matrix.php-versions }} (PHPUnit 11) Test on ubuntu-latest
175175
steps:
176176
- name: Checkout
177177
uses: actions/checkout@v4
@@ -187,11 +187,11 @@ jobs:
187187
with:
188188
composer-options: "--prefer-dist"
189189

190-
- name: Remove phpunit-bridge dependency (not yet phpunit 10 compliant)
190+
- name: Remove phpunit-bridge dependency (not yet PHPUnit 10+ compliant)
191191
run: composer remove --dev symfony/phpunit-bridge
192192

193-
- name: Install latest phpunit 10
194-
run: composer require --dev --prefer-dist phpunit/phpunit:^10.0
193+
- name: Install latest PHPUnit 11
194+
run: composer require --dev --prefer-dist 'phpunit/phpunit:>=10'
195195

196196
- name: Run tests
197197
run: vendor/bin/phpunit --configuration phpunit.xml.dist.10

composer.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@
2828
"ext-dom": "*",
2929
"ext-libxml": "*",
3030
"php-webdriver/webdriver": "^1.8.2",
31-
"symfony/browser-kit": "^5.3 || ^6.0 || ^7.0",
32-
"symfony/dependency-injection": "^5.3 || ^6.0 || ^7.0",
31+
"symfony/browser-kit": "^5.4 || ^6.4 || ^7.0",
32+
"symfony/dependency-injection": "^5.4 || ^6.4 || ^7.0",
3333
"symfony/deprecation-contracts": "^2.4 || ^3",
34-
"symfony/dom-crawler": "^5.3 || ^6.0 || ^7.0",
35-
"symfony/http-client": "^5.3 || ^6.0 || ^7.0",
36-
"symfony/http-kernel": "^5.3 || ^6.0 || ^7.0",
37-
"symfony/process": "^5.3 || ^6.0 || ^7.0"
34+
"symfony/dom-crawler": "^5.4 || ^6.4 || ^7.0",
35+
"symfony/http-client": "^6.4 || ^7.0",
36+
"symfony/http-kernel": "^5.4 || ^6.4 || ^7.0",
37+
"symfony/process": "^5.4 || ^6.4 || ^7.0"
3838
},
3939
"require-dev": {
40-
"symfony/css-selector": "^5.3 || ^6.0 || ^7.0",
41-
"symfony/framework-bundle": "^5.3 || ^6.0 || ^7.0",
42-
"symfony/mime": "^5.3 || ^6.0 || ^7.0",
43-
"symfony/phpunit-bridge": "^5.3 || ^6.0 || ^7.0"
40+
"symfony/css-selector": "^5.4 || ^6.4 || ^7.0",
41+
"symfony/framework-bundle": "^5.4 || ^6.4 || ^7.0",
42+
"symfony/mime": "^5.4 || ^6.4 || ^7.0",
43+
"symfony/phpunit-bridge": "^7.2.0"
4444
},
4545
"minimum-stability": "dev",
4646
"prefer-stable": true,

phpunit.xml.dist.10

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<php>
2323
<env name="KERNEL_CLASS" value="Symfony\Component\Panther\Tests\DummyKernel"/>
2424
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=0"/>
25-
<server name="SYMFONY_PHPUNIT_VERSION" value="10.0"/>
25+
<server name="SYMFONY_PHPUNIT_VERSION" value=">=10"/>
2626
</php>
2727

2828
<testsuites>

tests/ClientTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ public function testPrefersReducedMotionDisabled(string $browser): void
622622
$client->clickLink('Click me!');
623623
}
624624

625-
public function providePrefersReducedMotion(): iterable
625+
public static function providePrefersReducedMotion(): iterable
626626
{
627627
yield 'Chrome' => [PantherTestCase::CHROME];
628628
yield 'Firefox' => [PantherTestCase::FIREFOX];

0 commit comments

Comments
 (0)