Skip to content

Commit 0cd247c

Browse files
authored
Merge pull request #310 from clue-labs/php8.3
Test on PHP 8.3 and update test environment
2 parents 2159111 + 82c69c4 commit 0cd247c

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
- ubuntu-22.04
1515
- windows-2022
1616
php:
17+
- 8.3
1718
- 8.2
1819
- 8.1
1920
- 8.0
@@ -27,7 +28,7 @@ jobs:
2728
- 5.4
2829
- 5.3
2930
steps:
30-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3132
- uses: shivammathur/setup-php@v2
3233
with:
3334
php-version: ${{ matrix.php }}
@@ -46,10 +47,10 @@ jobs:
4647
runs-on: macos-12
4748
continue-on-error: true
4849
steps:
49-
- uses: actions/checkout@v3
50+
- uses: actions/checkout@v4
5051
- uses: shivammathur/setup-php@v2
5152
with:
52-
php-version: 8.1
53+
php-version: 8.2
5354
coverage: xdebug
5455
- run: composer install
5556
- run: vendor/bin/phpunit --coverage-text
@@ -59,7 +60,7 @@ jobs:
5960
runs-on: ubuntu-22.04
6061
continue-on-error: true
6162
steps:
62-
- uses: actions/checkout@v3
63+
- uses: actions/checkout@v4
6364
- run: cp "$(which composer)" composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM
6465
- name: Run hhvm composer.phar install
6566
uses: docker://hhvm/hhvm:3.30-lts-latest

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@
3434
"react/stream": "^1.2"
3535
},
3636
"require-dev": {
37-
"phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35",
37+
"phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36",
3838
"react/async": "^4 || ^3 || ^2",
3939
"react/promise-stream": "^1.4",
4040
"react/promise-timer": "^1.10"
4141
},
4242
"autoload": {
4343
"psr-4": {
44-
"React\\Socket\\": "src"
44+
"React\\Socket\\": "src/"
4545
}
4646
},
4747
"autoload-dev": {
4848
"psr-4": {
49-
"React\\Tests\\Socket\\": "tests"
49+
"React\\Tests\\Socket\\": "tests/"
5050
}
5151
}
5252
}

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"
@@ -20,7 +20,7 @@
2020
<php>
2121
<ini name="error_reporting" value="-1" />
2222
<!-- Evaluate assertions, requires running with "php -d zend.assertions=1 vendor/bin/phpunit" -->
23-
<!-- <ini name="zend.assertions=1" value="1" /> -->
23+
<!-- <ini name="zend.assertions" value="1" /> -->
2424
<ini name="assert.active" value="1" />
2525
<ini name="assert.exception" value="1" />
2626
<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 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"
@@ -18,7 +18,7 @@
1818
<php>
1919
<ini name="error_reporting" value="-1" />
2020
<!-- Evaluate assertions, requires running with "php -d zend.assertions=1 vendor/bin/phpunit" -->
21-
<!-- <ini name="zend.assertions=1" value="1" /> -->
21+
<!-- <ini name="zend.assertions" value="1" /> -->
2222
<ini name="assert.active" value="1" />
2323
<ini name="assert.exception" value="1" />
2424
<ini name="assert.bail" value="0" />

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy