Skip to content

Commit 4b70f14

Browse files
committed
Update PHPUnit config, tweaks to test config
1 parent 4398be4 commit 4b70f14

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

.github/workflows/tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ jobs:
6363
- name: Install Winter CMS
6464
run: |
6565
wget https://github.com/wintercms/winter/archive/${{ matrix.winterRelease }}.zip
66-
unzip ${{ matrix.winterReleaseDir }}.zip
67-
rm ${{ matrix.winterReleaseDir }}.zip
66+
unzip ${{ matrix.winterRelease }}.zip
67+
rm ${{ matrix.winterRelease }}.zip
6868
shopt -s dotglob
6969
mv winter-${{ matrix.winterReleaseDir }}/* ./
7070
rmdir winter-${{ matrix.winterReleaseDir }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
composer.lock
22
vendor
33
.DS_Store
4+
.phpunit.result.cache

phpunit.xml

+14-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
34
backupGlobals="false"
45
backupStaticAttributes="false"
56
colors="true"
@@ -8,26 +9,27 @@
89
convertWarningsToExceptions="true"
910
processIsolation="false"
1011
stopOnFailure="false"
12+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
1113
>
1214
<testsuites>
13-
<testsuite name="winter.user">
15+
<testsuite name="Winter.User">
1416
<directory>./tests</directory>
1517
</testsuite>
1618
</testsuites>
17-
<filter>
18-
<whitelist processUncoveredFilesFromWhitelist="true">
19+
<coverage processUncoveredFiles="true">
20+
<include>
1921
<directory suffix=".php">./classes</directory>
2022
<directory suffix=".php">./components</directory>
2123
<directory suffix=".php">./controllers</directory>
2224
<directory suffix=".php">./facades</directory>
2325
<directory suffix=".php">./models</directory>
2426
<directory suffix=".php">./notifyrules</directory>
25-
<exclude>
26-
<file>./Plugin.php</file>
27-
<directory>./tests</directory>
28-
<directory>./updates</directory>
29-
<directory>./vendor</directory>
30-
</exclude>
31-
</whitelist>
32-
</filter>
27+
</include>
28+
<exclude>
29+
<file>./Plugin.php</file>
30+
<directory>./tests</directory>
31+
<directory>./updates</directory>
32+
<directory>./vendor</directory>
33+
</exclude>
34+
</coverage>
3335
</phpunit>

0 commit comments

Comments
 (0)