Skip to content

Commit 60cf501

Browse files
committed
Update phpunit.xml.dist
1 parent 82d12bb commit 60cf501

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/code_coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
4343
- name: PHPUnit
4444
run: |
45-
./vendor/bin/phpunit --stop-on-failure --coverage-clover ./clover.xml -c ./phpunit_conf/phpunit_${{ matrix.php }}.xml.dist
45+
./vendor/bin/phpunit --stop-on-failure --coverage-clover ./clover.xml -c ./phpunit_conf/coverage.xml.dist
4646
env:
4747
XDEBUG_MODE: coverage
4848
- name: Make code coverage badge

phpunit_conf/coverage.xml.dist

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="./../vendor/autoload.php" executionOrder="depends,defects" beStrictAboutOutputDuringTests="true" failOnRisky="true" failOnWarning="true" backupGlobals="false" colors="true" processIsolation="false" stopOnError="false" stopOnFailure="false" cacheDirectory=".phpunit.cache">
3+
<testsuites>
4+
<testsuite name="default">
5+
<directory>./../tests</directory>
6+
</testsuite>
7+
</testsuites>
8+
<php>
9+
<env name="APP_ENV" value="testing"/>
10+
<env name="CACHE_DRIVER" value="array"/>
11+
<env name="SESSION_DRIVER" value="array"/>
12+
</php>
13+
<source>
14+
<include>
15+
<directory suffix=".php">./../src</directory>
16+
</include>
17+
<exclude/>
18+
</source>
19+
</phpunit>

0 commit comments

Comments
 (0)