Merge pull request #240 from clue-labs/update-tests
[3.x] Update test suite and report failed assertions
Simon Frings authored 1 year, 6 months ago
GitHub committed 1 year, 6 months ago
6 | 6 |
jobs:
|
7 | 7 |
PHPUnit:
|
8 | 8 |
name: PHPUnit (PHP ${{ matrix.php }})
|
9 | |
runs-on: ubuntu-20.04
|
|
9 |
runs-on: ubuntu-22.04
|
10 | 10 |
strategy:
|
11 | 11 |
matrix:
|
12 | 12 |
php:
|
|
18 | 18 |
- 7.2
|
19 | 19 |
- 7.1
|
20 | 20 |
steps:
|
21 | |
- uses: actions/checkout@v2
|
|
21 |
- uses: actions/checkout@v3
|
22 | 22 |
- uses: shivammathur/setup-php@v2
|
23 | 23 |
with:
|
24 | 24 |
php-version: ${{ matrix.php }}
|
25 | 25 |
coverage: xdebug
|
|
26 |
ini-file: development
|
26 | 27 |
- run: composer install
|
27 | 28 |
- run: vendor/bin/phpunit --coverage-text
|
28 | 29 |
if: ${{ matrix.php >= 7.3 }}
|
27 | 27 |
"php": ">=7.1.0"
|
28 | 28 |
},
|
29 | 29 |
"require-dev": {
|
30 | |
"phpunit/phpunit": "^9.3 || ^7.5"
|
|
30 |
"phpunit/phpunit": "^9.5 || ^7.5"
|
31 | 31 |
},
|
32 | 32 |
"autoload": {
|
33 | 33 |
"psr-4": {
|
0 | 0 |
<?xml version="1.0" encoding="UTF-8"?>
|
1 | 1 |
|
2 | |
<!-- PHPUnit configuration file with new format for PHPUnit 9.3+ -->
|
3 | |
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
4 | |
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
|
|
2 |
<!-- PHPUnit configuration file with new format for PHPUnit 9.5+ -->
|
|
3 |
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4 |
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
|
5 | 5 |
bootstrap="vendor/autoload.php"
|
6 | 6 |
cacheResult="false"
|
7 | 7 |
colors="true"
|
|
21 | 21 |
</coverage>
|
22 | 22 |
<php>
|
23 | 23 |
<ini name="error_reporting" value="-1" />
|
|
24 |
<!-- Evaluate assertions, requires running with "php -d zend.assertions=1 vendor/bin/phpunit" -->
|
|
25 |
<!-- <ini name="zend.assertions=1" value="1" /> -->
|
|
26 |
<ini name="assert.active" value="1" />
|
|
27 |
<ini name="assert.exception" value="1" />
|
|
28 |
<ini name="assert.bail" value="0" />
|
24 | 29 |
</php>
|
25 | 30 |
</phpunit>
|
0 | 0 |
<?xml version="1.0" encoding="UTF-8"?>
|
1 | 1 |
|
2 | |
<!-- PHPUnit configuration file with old format for PHPUnit 9.2 or older -->
|
|
2 |
<!-- PHPUnit configuration file with old format before PHPUnit 9 -->
|
3 | 3 |
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
4 | 4 |
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.5/phpunit.xsd"
|
5 | 5 |
bootstrap="vendor/autoload.php"
|
|
17 | 17 |
</exclude>
|
18 | 18 |
</whitelist>
|
19 | 19 |
</filter>
|
|
20 |
<php>
|
|
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=1" value="1" /> -->
|
|
24 |
<ini name="assert.active" value="1" />
|
|
25 |
<ini name="assert.exception" value="1" />
|
|
26 |
<ini name="assert.bail" value="0" />
|
|
27 |
</php>
|
20 | 28 |
</phpunit>
|