Skip to content

Commit 5084642

Browse files
committed
More Phpunit Tweaking
1 parent 737cb37 commit 5084642

File tree

3 files changed

+35
-15
lines changed

3 files changed

+35
-15
lines changed

.github/workflows/php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ jobs:
8989

9090
- name: Run phpunit 7.4 8.0
9191
if: matrix.php == '7.4' || matrix.php == '8.0'
92-
run: ./vendor/bin/phpunit -c phpunit.xml.dist --no-coverage
92+
run: ./vendor/bin/phpunit -c phpunit9.xml.dist --no-coverage
9393

9494
- name: Run phpunit 8.1 8.2 8.3 8.4
9595
if: matrix.php == '8.1' || matrix.php == '8.2' || matrix.php == '8.3' || matrix.php == '8.4'
9696
run: ./vendor/bin/phpunit -c phpunit10.xml.dist --no-coverage
9797

9898
- name: Run phpunit 7.3
9999
if: matrix.php == '7.3'
100-
run: ./vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/clover.xml
100+
run: ./vendor/bin/phpunit -c phpunit9.xml.dist --coverage-clover build/clover.xml
101101

102102
- name: Upload coverage results to Coveralls
103103
if: matrix.php == '7.3'

phpunit.xml.dist

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
<?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-
<coverage>
4-
<include>
5-
<directory suffix=".php">./src</directory>
6-
</include>
7-
<exclude>
8-
<directory suffix=".php">./src/PhpWord/Shared/PCLZip</directory>
9-
</exclude>
10-
<!--report>
11-
<clover outputFile="./build/logs/clover.xml"/>
12-
<html outputDirectory="./build/coverage"/>
13-
</report-->
14-
</coverage>
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">
153
<php>
164
<ini name="error_reporting" value="E_ALL"/>
175
</php>
@@ -21,4 +9,12 @@
219
</testsuite>
2210
</testsuites>
2311
<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>
2420
</phpunit>

phpunit9.xml.dist

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
<coverage>
4+
<include>
5+
<directory suffix=".php">./src</directory>
6+
</include>
7+
<exclude>
8+
<directory suffix=".php">./src/PhpWord/Shared/PCLZip</directory>
9+
</exclude>
10+
<!--report>
11+
<clover outputFile="./build/logs/clover.xml"/>
12+
<html outputDirectory="./build/coverage"/>
13+
</report-->
14+
</coverage>
15+
<php>
16+
<ini name="error_reporting" value="E_ALL"/>
17+
</php>
18+
<testsuites>
19+
<testsuite name="PhpWord Test Suite">
20+
<directory>./tests/PhpWordTests</directory>
21+
</testsuite>
22+
</testsuites>
23+
<logging/>
24+
</phpunit>

0 commit comments

Comments
 (0)