Skip to content

Commit c3505ba

Browse files
authored
Merge pull request #19 from yadaiio/test_suite
Run tests on PHP 8.3 and update test suite
2 parents 53d2954 + da27303 commit c3505ba

File tree

4 files changed

+24
-10
lines changed

4 files changed

+24
-10
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ on:
77
jobs:
88
PHPUnit:
99
name: PHPUnit (PHP ${{ matrix.php }})
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111
strategy:
1212
matrix:
1313
php:
14+
- 8.3
15+
- 8.2
16+
- 8.1
1417
- 8.0
1518
- 7.4
1619
- 7.3
@@ -22,7 +25,7 @@ jobs:
2225
- 5.4
2326
- 5.3
2427
steps:
25-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v4
2629
- uses: shivammathur/setup-php@v2
2730
with:
2831
php-version: ${{ matrix.php }}

composer.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@
1111
}
1212
],
1313
"autoload": {
14-
"psr-4" : { "Clue\\React\\Shell\\": "src/" }
14+
"psr-4" : {
15+
"Clue\\React\\Shell\\": "src/"
16+
}
1517
},
1618
"autoload-dev": {
17-
"psr-4": { "Clue\\Tests\\React\\Shell\\": "tests/" }
19+
"psr-4": {
20+
"Clue\\Tests\\React\\Shell\\": "tests/"
21+
}
1822
},
1923
"require": {
2024
"php": ">=5.3",
@@ -24,6 +28,6 @@
2428
"react/promise": "^2.0 || ^1.0"
2529
},
2630
"require-dev": {
27-
"phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35"
31+
"phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36"
2832
}
2933
}

phpunit.xml.dist

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

3-
<!-- PHPUnit configuration file with new format for PHPUnit 9.3+ -->
4-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
3+
<!-- PHPUnit configuration file with new format for PHPUnit 9.6+ -->
4+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
66
bootstrap="vendor/autoload.php"
7+
cacheResult="false"
78
colors="true"
8-
cacheResult="false">
9+
convertDeprecationsToExceptions="true">
910
<testsuites>
1011
<testsuite name="Shell React Test Suite">
1112
<directory>./tests/</directory>
@@ -16,4 +17,7 @@
1617
<directory>./src/</directory>
1718
</include>
1819
</coverage>
20+
<php>
21+
<ini name="error_reporting" value="-1" />
22+
</php>
1923
</phpunit>

phpunit.xml.legacy

Lines changed: 4 additions & 1 deletion
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 for PHPUnit 9.2 or older -->
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/4.8/phpunit.xsd"
66
bootstrap="vendor/autoload.php"
@@ -15,4 +15,7 @@
1515
<directory>./src/</directory>
1616
</whitelist>
1717
</filter>
18+
<php>
19+
<ini name="error_reporting" value="-1" />
20+
</php>
1821
</phpunit>

0 commit comments

Comments
 (0)