Skip to content

Commit aff91a1

Browse files
committed
Run tests on PHP 8.3 and update test suite
1 parent 8cc37cc commit aff91a1

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ jobs:
1111
strategy:
1212
matrix:
1313
php:
14+
- 8.3
1415
- 8.2
1516
- 8.1
1617
steps:
17-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1819
- uses: shivammathur/setup-php@v2
1920
with:
2021
php-version: ${{ matrix.php }}
@@ -29,10 +30,11 @@ jobs:
2930
strategy:
3031
matrix:
3132
php:
33+
- 8.3
3234
- 8.2
3335
- 8.1
3436
steps:
35-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3638
- uses: shivammathur/setup-php@v2
3739
with:
3840
php-version: ${{ matrix.php }}

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"react/promise": "^3.0 || ^2.8 || ^1.2.1"
3232
},
3333
"require-dev": {
34-
"phpstan/phpstan": "1.10.18",
35-
"phpunit/phpunit": "^9.5"
34+
"phpstan/phpstan": "1.10.39",
35+
"phpunit/phpunit": "^9.6"
3636
},
3737
"autoload": {
3838
"psr-4": {
@@ -43,6 +43,8 @@
4343
]
4444
},
4545
"autoload-dev": {
46-
"psr-4": { "React\\Tests\\Async\\": "tests/" }
46+
"psr-4": {
47+
"React\\Tests\\Async\\": "tests/"
48+
}
4749
}
4850
}

phpunit.xml.dist

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

33
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
4+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
55
bootstrap="vendor/autoload.php"
66
cacheResult="false"
77
colors="true"

src/functions_include.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace React\Async;
44

55
// @codeCoverageIgnoreStart
6-
if (!function_exists(__NAMESPACE__ . '\\parallel')) {
6+
if (!\function_exists(__NAMESPACE__ . '\\parallel')) {
77
require __DIR__ . '/functions.php';
88
}
9+
// @codeCoverageIgnoreEnd

0 commit comments

Comments
 (0)