summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2020-10-10 10:36:21 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2021-01-07 17:24:21 +0100
commitf2eacb67c55a4895f503acc3ca738ce1085d3bcb (patch)
treea6a9efcec52cd69b94203348c1962178a4f514a9
parent817405203c4d5c6ebc7cff1b66a1e9f2239e215a (diff)
Migrate phpunit.xml
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
-rw-r--r--.gitignore1
-rw-r--r--phpunit.xml46
2 files changed, 25 insertions, 22 deletions
diff --git a/.gitignore b/.gitignore
index 8e4713eb1..89b9ac989 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,6 +9,7 @@ js/build
js/*.xml
.rvm
*.clover
+.phpunit.result.cache
# python
PKG-INFO
diff --git a/phpunit.xml b/phpunit.xml
index c5c549579..9c52c7234 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -1,23 +1,25 @@
-<phpunit bootstrap="tests/bootstrap.php" colors="true">
- <testsuites>
- <testsuite name="unit">
- <directory>./tests/Unit</directory>
- </testsuite>
- </testsuites>
- <filter>
- <whitelist processUncoveredFilesFromWhitelist="true">
- <directory suffix=".php">./lib/</directory>
- <exclude>
- <file>./lib/AppInfo/Application.php</file>
- <file>./lib/Controller/JSONHttpErrorTrait.php</file>
- <file>./lib/**Exception.php</file>
- <file>./lib/Migration/**.php</file>
- </exclude>
- </whitelist>
- </filter>
- <logging>
- <log type="coverage-html" target="./build/report" lowUpperBound="35" highLowerBound="70"/>
- <log type="coverage-clover" target="./build/coverage.xml"/>
- <log type="junit" target="./build/junit.xml"/>
- </logging>
+<?xml version="1.0"?>
+<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="tests/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
+ <coverage processUncoveredFiles="true">
+ <include>
+ <directory suffix=".php">./lib/</directory>
+ </include>
+ <exclude>
+ <file>./lib/AppInfo/Application.php</file>
+ <file>./lib/Controller/JSONHttpErrorTrait.php</file>
+ <file>./lib/**Exception.php</file>
+ </exclude>
+ <report>
+ <clover outputFile="./build/coverage.xml"/>
+ <html outputDirectory="./build/report" lowUpperBound="35" highLowerBound="70"/>
+ </report>
+ </coverage>
+ <testsuites>
+ <testsuite name="unit">
+ <directory>./tests/Unit</directory>
+ </testsuite>
+ </testsuites>
+ <logging>
+ <junit outputFile="./build/junit.xml"/>
+ </logging>
</phpunit>