Skip to content

Commit 0e3eb2b

Browse files
committed
Experiment with Different Phpunit Xml Dists
1 parent 8e6726c commit 0e3eb2b

File tree

3 files changed

+43
-3
lines changed

3 files changed

+43
-3
lines changed

.github/workflows/php.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,19 @@ jobs:
8383
- name: Composer Install
8484
run: composer install --ansi --prefer-dist --no-interaction --no-progress
8585

86-
- name: Run phpunit
87-
if: matrix.php != '7.3'
86+
- name: Run phpunit 7.1 7.2
87+
if: matrix.php == '7.1' || matrix.php == '7.2'
88+
run: ./vendor/bin/phpunit -c phpunit.7.8.xml.dist --no-coverage
89+
90+
- name: Run phpunit 7.4 8.0
91+
if: matrix.php == '7.4' || matrix.php == '8.0'
8892
run: ./vendor/bin/phpunit -c phpunit.xml.dist --no-coverage
8993

90-
- name: Run phpunit
94+
- name: Run phpunit 8.1 8.2 8.3 8.4
95+
if: matrix.php == '8.1' || matrix.php == '8.2' || matrix.php == '8.3' || matrix.php == '8.4'
96+
run: ./vendor/bin/phpunit -c phpunit10.xml.dist --no-coverage
97+
98+
- name: Run phpunit 7.3
9199
if: matrix.php == '7.3'
92100
run: ./vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/clover.xml
93101

phpunit.7.8.xml.dist

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="./tests/bootstrap.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" convertDeprecationsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<php>
4+
<ini name="error_reporting" value="E_ALL"/>
5+
</php>
6+
<testsuites>
7+
<testsuite name="PhpWord Test Suite">
8+
<directory>./tests/PhpWordTests</directory>
9+
</testsuite>
10+
</testsuites>
11+
<logging/>
12+
</phpunit>

phpunit10.xml.dist

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="./tests/bootstrap.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<php>
4+
<ini name="error_reporting" value="E_ALL"/>
5+
</php>
6+
<testsuites>
7+
<testsuite name="PhpWord Test Suite">
8+
<directory>./tests/PhpWordTests</directory>
9+
</testsuite>
10+
</testsuites>
11+
<logging/>
12+
<source>
13+
<include>
14+
<directory suffix=".php">./src</directory>
15+
</include>
16+
<exclude>
17+
<directory suffix=".php">./src/PhpWord/Shared/PCLZip</directory>
18+
</exclude>
19+
</source>
20+
</phpunit>

0 commit comments

Comments
 (0)