Skip to content

Commit 0c20ee1

Browse files
committed
Update phpunit.xml and travis
1 parent b342cb3 commit 0c20ee1

File tree

2 files changed

+15
-29
lines changed

2 files changed

+15
-29
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ matrix:
1414
- php: 7.2
1515
- php: 7.3
1616
- php: 7.4
17+
- php: 8.0
1718
env: REPORT_TESTS_COVERAGE=1
1819

1920
cache:

phpunit.xml.dist

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
4-
bootstrap="vendor/autoload.php"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false">
11-
<testsuites>
12-
<testsuite name="Feature Tests">
13-
<directory suffix="Test.php">./tests/Feature</directory>
14-
</testsuite>
15-
16-
<testsuite name="Unit Tests">
17-
<directory suffix="Test.php">./tests/Unit</directory>
18-
</testsuite>
19-
</testsuites>
20-
<filter>
21-
<whitelist processUncoveredFilesFromWhitelist="true">
22-
<directory suffix=".php">./src</directory>
23-
</whitelist>
24-
</filter>
25-
<logging>
26-
<log type="coverage-clover" target="coverage.xml" showUncoveredFiles="true"/>
27-
<log type="coverage-html" target="./test-reports" charset="UTF-8"
28-
yui="true" highlight="true"
29-
lowUpperBound="50" highLowerBound="80" />
30-
</logging>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="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+
<report>
8+
<clover outputFile="tests/storage/logs/test-reports/clover.xml"/>
9+
<html outputDirectory="tests/storage/logs/test-reports" lowUpperBound="50" highLowerBound="80"/>
10+
</report>
11+
</coverage>
12+
<testsuite name="Unit Tests">
13+
<directory suffix="Test.php">./tests/Unit</directory>
14+
</testsuite>
15+
<logging/>
3116
</phpunit>

0 commit comments

Comments
 (0)