File tree Expand file tree Collapse file tree 4 files changed +28
-10
lines changed Expand file tree Collapse file tree 4 files changed +28
-10
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
env :
12
12
LOGIN : username:password@localhost
13
13
strategy :
@@ -25,12 +25,13 @@ jobs:
25
25
- 5.4
26
26
- 5.3
27
27
steps :
28
- - uses : actions/checkout@v2
28
+ - uses : actions/checkout@v4
29
29
- uses : shivammathur/setup-php@v2
30
30
with :
31
31
php-version : ${{ matrix.php }}
32
32
coverage : xdebug
33
- - run : sudo apt-get -qq update || true # update package list and ignore temporary network errors
33
+ ini-file : development
34
+ - run : sudo apt-get -qq update || true && sudo apt install -f # update package list and ignore temporary network errors
34
35
- run : sudo apt-get --no-install-recommends -qq install -y asterisk
35
36
- run : sudo cp tests/username.conf /etc/asterisk/manager.d/username.conf
36
37
- run : sudo /etc/init.d/asterisk reload
Original file line number Diff line number Diff line change 19
19
},
20
20
"require-dev" : {
21
21
"clue/block-react" : " ^1.2" ,
22
- "phpunit/phpunit" : " ^9.3 || ^5.7 || ^4.8.35 "
22
+ "phpunit/phpunit" : " ^9.6 || ^5.7 || ^4.8.36 "
23
23
},
24
24
"autoload" : {
25
- "psr-4" : { "Clue\\ React\\ Ami\\ " : " src/" }
25
+ "psr-4" : {
26
+ "Clue\\ React\\ Ami\\ " : " src/"
27
+ }
26
28
},
27
29
"autoload-dev" : {
28
- "psr-4" : { "Clue\\ Tests\\ React\\ Ami\\ " : " tests/" }
30
+ "psr-4" : {
31
+ "Clue\\ Tests\\ React\\ Ami\\ " : " tests/"
32
+ }
29
33
}
30
34
}
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.6 + -->
4
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.6 /phpunit.xsd"
6
6
bootstrap =" vendor/autoload.php"
7
7
cacheResult =" false"
8
8
colors =" true"
19
19
</coverage >
20
20
<php >
21
21
<ini name =" error_reporting" value =" -1" />
22
+ <!-- Evaluate assertions, requires running with "php -d zend.assertions=1 vendor/bin/phpunit" -->
23
+ <!-- <ini name="zend.assertions" value="1" /> -->
24
+ <ini name =" assert.active" value =" 1" />
25
+ <ini name =" assert.exception" value =" 1" />
26
+ <ini name =" assert.bail" value =" 0" />
22
27
</php >
23
28
</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 for legacy PHPUnit -->
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"
15
15
<directory >./src/</directory >
16
16
</whitelist >
17
17
</filter >
18
+ <php >
19
+ <ini name =" error_reporting" value =" -1" />
20
+ <!-- Evaluate assertions, requires running with "php -d zend.assertions=1 vendor/bin/phpunit" -->
21
+ <!-- <ini name="zend.assertions" value="1" /> -->
22
+ <ini name =" assert.active" value =" 1" />
23
+ <ini name =" assert.exception" value =" 1" />
24
+ <ini name =" assert.bail" value =" 0" />
25
+ </php >
18
26
</phpunit >
You can’t perform that action at this time.
0 commit comments