File tree 6 files changed +38
-15
lines changed
6 files changed +38
-15
lines changed Original file line number Diff line number Diff line change 7
7
jobs :
8
8
PHPUnit :
9
9
name : PHPUnit (PHP ${{ matrix.php }})
10
- runs-on : ubuntu-20 .04
10
+ runs-on : ubuntu-22 .04
11
11
strategy :
12
12
matrix :
13
13
php :
@@ -23,11 +23,12 @@ jobs:
23
23
- 5.5
24
24
- 5.4
25
25
steps :
26
- - uses : actions/checkout@v2
26
+ - uses : actions/checkout@v3
27
27
- uses : shivammathur/setup-php@v2
28
28
with :
29
29
php-version : ${{ matrix.php }}
30
30
coverage : xdebug
31
+ ini-file : development
31
32
- run : composer install
32
33
- run : vendor/bin/phpunit --coverage-text
33
34
if : ${{ matrix.php >= 7.3 }}
@@ -36,13 +37,16 @@ jobs:
36
37
37
38
PHPUnit-hhvm :
38
39
name : PHPUnit (HHVM)
39
- runs-on : ubuntu-18 .04
40
+ runs-on : ubuntu-22 .04
40
41
continue-on-error : true
41
42
steps :
42
- - uses : actions/checkout@v2
43
- - uses : azjezz/setup-hhvm@v1
43
+ - uses : actions/checkout@v3
44
+ - run : cp "$(which composer)" composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM
45
+ - name : Run hhvm composer.phar install
46
+ uses : docker://hhvm/hhvm:3.30-lts-latest
44
47
with :
45
- version : lts-3.30
46
- - run : composer self-update --2.2 # downgrade Composer for HHVM
47
- - run : hhvm $(which composer) install
48
- - run : hhvm vendor/bin/phpunit
48
+ args : hhvm composer.phar install
49
+ - name : Run hhvm vendor/bin/phpunit
50
+ uses : docker://hhvm/hhvm:3.30-lts-latest
51
+ with :
52
+ args : hhvm vendor/bin/phpunit
Original file line number Diff line number Diff line change 28
28
"php" : " >=5.4.0"
29
29
},
30
30
"require-dev" : {
31
- "phpunit/phpunit" : " ^9.3 || ^5.7 || ^4.8.36"
31
+ "phpunit/phpunit" : " ^9.5 || ^5.7 || ^4.8.36"
32
32
},
33
33
"autoload" : {
34
34
"psr-4" : {
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
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.5 + -->
4
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.5 /phpunit.xsd"
6
6
bootstrap =" vendor/autoload.php"
7
+ cacheResult =" false"
7
8
colors =" true"
8
- cacheResult = " false " >
9
+ convertDeprecationsToExceptions = " true " >
9
10
<testsuites >
10
11
<testsuite name =" Promise Test Suite" >
11
12
<directory >./tests/</directory >
19
20
<file >./src/functions_include.php</file >
20
21
</exclude >
21
22
</coverage >
23
+ <php >
24
+ <ini name =" error_reporting" value =" -1" />
25
+ <!-- Evaluate assertions, requires running with "php -d zend.assertions=1 vendor/bin/phpunit" -->
26
+ <!-- <ini name="zend.assertions=1" value="1" /> -->
27
+ <ini name =" assert.active" value =" 1" />
28
+ <ini name =" assert.exception" value =" 1" />
29
+ <ini name =" assert.bail" value =" 0" />
30
+ </php >
22
31
</phpunit >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
3
- <!-- PHPUnit configuration file with old format for PHPUnit 9.2 or older -->
3
+ <!-- PHPUnit configuration file with old format before PHPUnit 9 -->
4
4
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
5
xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/4.8/phpunit.xsd"
6
6
bootstrap =" vendor/autoload.php"
18
18
</exclude >
19
19
</whitelist >
20
20
</filter >
21
+ <php >
22
+ <ini name =" error_reporting" value =" -1" />
23
+ <!-- Evaluate assertions, requires running with "php -d zend.assertions=1 vendor/bin/phpunit" -->
24
+ <!-- <ini name="zend.assertions=1" value="1" /> -->
25
+ <ini name =" assert.active" value =" 1" />
26
+ <ini name =" assert.exception" value =" 1" />
27
+ <ini name =" assert.bail" value =" 0" />
28
+ </php >
21
29
</phpunit >
Original file line number Diff line number Diff line change 7
7
8
8
class CountableException extends RuntimeException implements Countable
9
9
{
10
+ #[\ReturnTypeWillChange]
10
11
public function count ()
11
12
{
12
13
return 0 ;
Original file line number Diff line number Diff line change 7
7
8
8
class CountableNonException implements Countable
9
9
{
10
+ #[\ReturnTypeWillChange]
10
11
public function count ()
11
12
{
12
13
return 0 ;
You can’t perform that action at this time.
0 commit comments