Skip to content

Commit 23d0409

Browse files
Merge pull request #19 from asbiin/php8.0
Support php8.0
2 parents 04a8fdd + a65fe86 commit 23d0409

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ language: php
44

55
php:
66
- 7.3
7+
- 7.4
8+
- 8.0
79

810
install:
911
- composer install --prefer-dist

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Generate code coverage reports on a live server",
44
"license": "MIT",
55
"require": {
6-
"php": "^7.3",
6+
"php": "^7.3 || ^8.0",
77
"webmozart/assert": "^1.2",
88
"phpunit/php-code-coverage": "^9.0",
99
"phpunit/phpunit": "^9.3"

phpunit.xml.dist

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<phpunit
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.0/phpunit.xsd"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
55
bootstrap="vendor/autoload.php"
66
colors="true"
77
>
@@ -10,9 +10,12 @@
1010
<directory>test</directory>
1111
</testsuite>
1212
</testsuites>
13-
<filter>
14-
<whitelist>
13+
<coverage>
14+
<include>
1515
<directory suffix=".php">src</directory>
16-
</whitelist>
17-
</filter>
16+
</include>
17+
</coverage>
18+
<php>
19+
<env name="XDEBUG_MODE" value="coverage"/>
20+
</php>
1821
</phpunit>

0 commit comments

Comments
 (0)