Skip to content

Commit ff423c1

Browse files
CI Changes
1 parent 651553b commit ff423c1

File tree

5 files changed

+48
-14
lines changed

5 files changed

+48
-14
lines changed

.github/workflows/test-application.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
include:
2323
- php-version: '8.0'
2424
dependencies: 'lowest'
25+
phpunit-config: 'phpunit-9.xml.dist'
2526
- php-version: '8.0'
27+
phpunit-config: 'phpunit-9.xml.dist'
2628
- php-version: '8.1'
2729
- php-version: '8.2'
2830
- php-version: '8.3'
@@ -50,7 +52,7 @@ jobs:
5052
composer-options: --prefer-dist --no-suggest
5153

5254
- name: Execute test
53-
run: vendor/bin/phpunit --coverage-clover=coverage.clover
55+
run: vendor/bin/phpunit --config ${{ matrix.phpunit-config || 'phpunit.xml.dist' }} --coverage-clover=coverage.clover
5456

5557
- name: Coverage
5658
if: ${{ matrix.coverage }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ composer.phar
44

55
*.iml
66
.idea
7+
.phpunit.cache

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"require-dev": {
2020
"mikey179/vfsstream": "^1.6.7",
2121
"psr/log": "^1.0 || ^2.0 || ^3.0",
22-
"phpunit/phpunit": "^9.5 || ^10 || ^11",
22+
"phpunit/phpunit": "^9.6.5 || ^10 || ^11",
2323
"phpspec/prophecy-phpunit": "^2.0"
2424
},
2525
"autoload": {

phpunit-9.xml.dist

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
5+
backupGlobals="false"
6+
colors="true"
7+
bootstrap="vendor/autoload.php">
8+
<php>
9+
<ini name="error_reporting" value="-1" />
10+
<ini name="date.timezone" value="UTC" />
11+
<env name="SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT" value="1"/>
12+
<env name="SYMFONY_PHPUNIT_REMOVE" value="symfony/yaml"/>
13+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>
14+
</php>
15+
16+
<testsuites>
17+
<testsuite name="php-task Library Test Suite">
18+
<directory>./tests/</directory>
19+
</testsuite>
20+
</testsuites>
21+
22+
<filter>
23+
<whitelist>
24+
<directory>./</directory>
25+
<exclude>
26+
<directory>./vendor</directory>
27+
<directory>./tests</directory>
28+
</exclude>
29+
</whitelist>
30+
</filter>
31+
</phpunit>

phpunit.xml.dist

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.2/phpunit.xsd"
54
backupGlobals="false"
65
colors="true"
76
bootstrap="vendor/autoload.php">
87
<php>
9-
<ini name="error_reporting" value="-1" />
10-
<ini name="date.timezone" value="UTC" />
8+
<ini name="error_reporting" value="-1"/>
9+
<ini name="date.timezone" value="UTC"/>
1110
<env name="SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT" value="1"/>
1211
<env name="SYMFONY_PHPUNIT_REMOVE" value="symfony/yaml"/>
1312
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>
@@ -19,13 +18,14 @@
1918
</testsuite>
2019
</testsuites>
2120

22-
<filter>
23-
<whitelist>
21+
<source>
22+
<include>
2423
<directory>./</directory>
25-
<exclude>
26-
<directory>./vendor</directory>
27-
<directory>./tests</directory>
28-
</exclude>
29-
</whitelist>
30-
</filter>
24+
</include>
25+
26+
<exclude>
27+
<directory>./vendor</directory>
28+
<directory>./tests</directory>
29+
</exclude>
30+
</source>
3131
</phpunit>

0 commit comments

Comments
 (0)