Skip to content

Commit 3895ffd

Browse files
committed
Add support PHPUnit 8
1 parent 996caf3 commit 3895ffd

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
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
before_install:
1011
- composer selfupdate

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "matthiasnoback/live-code-coverage",
33
"require": {
4-
"php": "^5.6 || ^7.0",
4+
"php": "^7.1",
55
"webmozart/assert": "^1.2",
6-
"phpunit/php-code-coverage": "^4.0 || ^5.2 || ^6.0",
7-
"phpunit/phpunit": "^5.7 || ^6.0 || ^7.0"
6+
"phpunit/php-code-coverage": "^4.0 || ^5.2 || ^6.0 || ^7.0",
7+
"phpunit/phpunit": "^5.7 || ^6.0 || ^7.0 || ^8.0"
88
},
99
"autoload": {
1010
"psr-4": {

phpunit.xml.dist

Lines changed: 4 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)