Skip to content

Commit bdc37c7

Browse files
authored
Merge pull request #105 from clue-labs/php8.3
Run tests on PHP 8.3 and update test suite
2 parents 20c7f33 + c4b53de commit bdc37c7

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 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,12 +28,14 @@ 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 }}
3435
coverage: xdebug
3536
ini-file: development
37+
- run: composer config secure-http false && composer config repo.packagist composer http://packagist.org && composer config preferred-install source
38+
if: ${{ matrix.php < 5.5 && matrix.os == 'windows-2022' }} # legacy PHP on Windows is allowed to use insecure downloads until it will be removed again
3639
- run: composer install
3740
- run: vendor/bin/phpunit --coverage-text
3841
if: ${{ matrix.php >= 7.3 }}
@@ -45,7 +48,7 @@ jobs:
4548
runs-on: ubuntu-22.04
4649
continue-on-error: true
4750
steps:
48-
- uses: actions/checkout@v3
51+
- uses: actions/checkout@v4
4952
- run: cp "$(which composer)" composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM
5053
- name: Run hhvm composer.phar install
5154
uses: docker://hhvm/hhvm:3.30-lts-latest

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"react/stream": "^1.2"
3333
},
3434
"require-dev": {
35-
"phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35",
35+
"phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36",
3636
"react/socket": "^1.8",
3737
"sebastian/environment": "^5.0 || ^3.0 || ^2.0 || ^1.0"
3838
},

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)