Skip to content

Commit

Permalink
Merge pull request #19 from asbiin/php8.0
Browse files Browse the repository at this point in the history
Support php8.0
  • Loading branch information
matthiasnoback authored Mar 8, 2021
2 parents 04a8fdd + a65fe86 commit 23d0409
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ language: php

php:
- 7.3
- 7.4
- 8.0

install:
- composer install --prefer-dist
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Generate code coverage reports on a live server",
"license": "MIT",
"require": {
"php": "^7.3",
"php": "^7.3 || ^8.0",
"webmozart/assert": "^1.2",
"phpunit/php-code-coverage": "^9.0",
"phpunit/phpunit": "^9.3"
Expand Down
13 changes: 8 additions & 5 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.0/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
Expand All @@ -10,9 +10,12 @@
<directory>test</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<coverage>
<include>
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</include>
</coverage>
<php>
<env name="XDEBUG_MODE" value="coverage"/>
</php>
</phpunit>

0 comments on commit 23d0409

Please sign in to comment.