Skip to content

Commit eeb964a

Browse files
Merge pull request #9 from pamil/phpunit-8
Add support PHPUnit 8
2 parents 2e900e3 + 3895ffd commit eeb964a

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

.travis.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ sudo: false
33
language: php
44

55
php:
6-
- 5.6
7-
- 7.0
6+
- 7.1
7+
- 7.2
8+
- 7.3
89

910
install:
1011
- composer install --prefer-dist

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"description": "Generate code coverage reports on a live server",
44
"license": "MIT",
55
"require": {
6-
"php": "^5.6 || ^7.0",
6+
"php": "^7.1",
77
"webmozart/assert": "^1.2",
8-
"phpunit/php-code-coverage": "^4.0 || ^5.2 || ^6.0",
9-
"phpunit/phpunit": "^5.7 || ^6.0 || ^7.0"
8+
"phpunit/php-code-coverage": "^4.0 || ^5.2 || ^6.0 || ^7.0",
9+
"phpunit/phpunit": "^5.7 || ^6.0 || ^7.0 || ^8.0"
1010
},
1111
"autoload": {
1212
"psr-4": {

phpunit.xml.dist

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.0/phpunit.xsd"
35
bootstrap="vendor/autoload.php"
46
colors="true"
57
>
68
<testsuites>
7-
<testsuite>
9+
<testsuite name="default">
810
<directory>test</directory>
911
</testsuite>
1012
</testsuites>
@@ -13,4 +15,4 @@
1315
<directory suffix=".php">src</directory>
1416
</whitelist>
1517
</filter>
16-
</phpunit>
18+
</phpunit>

test/functional/LiveCodeCoverageTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ final class LiveCodeCoverageTest extends TestCase
1010
{
1111
private $coverageDirectory;
1212

13-
protected function setUp()
13+
protected function setUp(): void
1414
{
1515
$this->coverageDirectory = __DIR__ . '/coverage';
1616

0 commit comments

Comments
 (0)