Skip to content

Commit 3282305

Browse files
committed
Run tests on PHP 8.3 and update test suite
1 parent 7053e3c commit 3282305

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
php:
14+
- 8.3
1415
- 8.2
1516
- 8.1
1617
- 8.0
@@ -19,7 +20,7 @@ jobs:
1920
- 7.2
2021
- 7.1
2122
steps:
22-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2324
- uses: shivammathur/setup-php@v2
2425
with:
2526
php-version: ${{ matrix.php }}
@@ -37,14 +38,15 @@ jobs:
3738
strategy:
3839
matrix:
3940
php:
41+
- 8.3
4042
- 8.2
4143
- 8.1
4244
- 8.0
4345
- 7.4
4446
- 7.3
4547
- 7.2
4648
steps:
47-
- uses: actions/checkout@v3
49+
- uses: actions/checkout@v4
4850
- uses: shivammathur/setup-php@v2
4951
with:
5052
php-version: ${{ matrix.php }}

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"php": ">=7.1.0"
2929
},
3030
"require-dev": {
31-
"phpstan/phpstan": "1.10.34 || 1.4.10",
32-
"phpunit/phpunit": "^9.5 || ^7.5"
31+
"phpstan/phpstan": "1.10.39 || 1.4.10",
32+
"phpunit/phpunit": "^9.6 || ^7.5"
3333
},
3434
"autoload": {
3535
"psr-4": {

phpunit.xml.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<!-- PHPUnit configuration file with new format for PHPUnit 9.5+ -->
3+
<!-- PHPUnit configuration file with new format for PHPUnit 9.6+ -->
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
66
bootstrap="vendor/autoload.php"
77
cacheResult="false"
88
colors="true"
@@ -24,7 +24,7 @@
2424
<php>
2525
<ini name="error_reporting" value="-1" />
2626
<!-- Evaluate assertions, requires running with "php -d zend.assertions=1 vendor/bin/phpunit" -->
27-
<!-- <ini name="zend.assertions=1" value="1" /> -->
27+
<!-- <ini name="zend.assertions" value="1" /> -->
2828
<ini name="assert.active" value="1" />
2929
<ini name="assert.exception" value="1" />
3030
<ini name="assert.bail" value="0" />

phpunit.xml.legacy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<!-- PHPUnit configuration file with old format before PHPUnit 9 -->
3+
<!-- PHPUnit configuration file with old format for legacy PHPUnit -->
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.5/phpunit.xsd"
66
bootstrap="vendor/autoload.php"
@@ -22,7 +22,7 @@
2222
<php>
2323
<ini name="error_reporting" value="-1" />
2424
<!-- Evaluate assertions, requires running with "php -d zend.assertions=1 vendor/bin/phpunit" -->
25-
<!-- <ini name="zend.assertions=1" value="1" /> -->
25+
<!-- <ini name="zend.assertions" value="1" /> -->
2626
<ini name="assert.active" value="1" />
2727
<ini name="assert.exception" value="1" />
2828
<ini name="assert.bail" value="0" />

0 commit comments

Comments
 (0)