Skip to content

Commit 51be6e3

Browse files
committed
Run tests on PHP 8.1 and 8.2
1 parent 137cae7 commit 51be6e3

File tree

3 files changed

+25
-10
lines changed

3 files changed

+25
-10
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ on:
66

77
jobs:
88
PHPUnit:
9-
runs-on: ubuntu-latest
9+
name: PHPUnit (PHP ${{ matrix.php }})
10+
runs-on: ubuntu-22.04
1011
strategy:
1112
matrix:
1213
php:
14+
- 8.2
15+
- 8.1
1316
- 8.0
1417
- 7.4
1518
- 7.3
@@ -21,11 +24,12 @@ jobs:
2124
- 5.4
2225
- 5.3
2326
steps:
24-
- uses: actions/checkout@v2
25-
- name: Setup PHP
27+
- uses: actions/checkout@v3
2628
uses: shivammathur/setup-php@v2
2729
with:
2830
php-version: ${{ matrix.php }}
31+
coverage: xdebug
32+
ini-file: development
2933
- run: composer install
3034
- run: vendor/bin/phpunit --coverage-text
3135
if: ${{ matrix.php >= 7.3 }}
@@ -34,11 +38,16 @@ jobs:
3438

3539
PHPUnit-hhvm:
3640
name: PHPUnit (HHVM)
37-
runs-on: ubuntu-18.04
41+
runs-on: ubuntu-22.04
42+
continue-on-error: true
3843
steps:
39-
- uses: actions/checkout@v2
40-
- uses: azjezz/setup-hhvm@v1
44+
- uses: actions/checkout@v3
45+
- run: cp "$(which composer)" composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM
46+
- name: Run hhvm composer.phar install
47+
uses: docker://hhvm/hhvm:3.30-lts-latest
4148
with:
42-
version: lts-3.30
43-
- run: hhvm $(which composer) install
44-
- run: hhvm vendor/bin/phpunit
49+
args: hhvm composer.phar install
50+
- name: Run hhvm vendor/bin/phpunit
51+
uses: docker://hhvm/hhvm:3.30-lts-latest
52+
with:
53+
args: hhvm vendor/bin/phpunit

phpunit.xml.dist

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
66
bootstrap="vendor/autoload.php"
7+
cacheResult="false"
78
colors="true"
8-
cacheResult="false">
9+
convertDeprecationsToExceptions="true">
910
<testsuites>
1011
<testsuite name="Zenity 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>

tests/Zen/FunctionalBaseZenTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
class FunctionalBaseZenTest extends TestCase
1010
{
11+
private $loop;
12+
1113
/**
1214
* @before
1315
*/

0 commit comments

Comments
 (0)