Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 45f7e5c

Browse files
committed
Support PHPUnit 8
1 parent 3c0da1e commit 45f7e5c

File tree

10 files changed

+1926
-9
lines changed

10 files changed

+1926
-9
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
language: php
22

33
env:
4-
CODECEPTION_VERSION: '2.5.x-dev'
4+
CODECEPTION_VERSION: '2.6.x-dev'
55

66
php:
7-
- 7.1
87
- 7.2
98
- 7.3
109

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
}
1111
],
1212
"require": {
13-
"phpunit/phpunit": ">=7.1 <7.6",
14-
"phpunit/php-code-coverage": "^6.0",
13+
"phpunit/phpunit": "^8.0",
14+
"phpunit/php-code-coverage": "^7.0",
1515
"sebastian/comparator": "^3.0",
1616
"sebastian/diff": "^3.0"
1717
},

src/FilterTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22
namespace Codeception\PHPUnit;
33

4+
use Codeception\PHPUnit\NonFinal\NameFilterIterator;
45
use Codeception\Test\Descriptor;
56

67
/**
@@ -9,7 +10,7 @@
910
* Class FilterTest
1011
* @package Codeception\PHPUnit
1112
*/
12-
class FilterTest extends \PHPUnit\Runner\Filter\NameFilterIterator
13+
class FilterTest extends NameFilterIterator
1314
{
1415
public function accept():bool
1516
{

src/Log/JUnit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Codeception\Test\Test;
77
use PHPUnit\Framework\TestCase;
88

9-
class JUnit extends \PHPUnit\Util\Log\JUnit
9+
class JUnit extends \Codeception\PHPUnit\NonFinal\JUnit
1010
{
1111
protected $strictAttributes = ['file', 'name', 'class'];
1212

src/Log/PhpUnit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use PHPUnit\Framework\TestCase;
88
use PHPUnit\Framework\TestSuite;
99

10-
class PhpUnit extends \PHPUnit\Util\Log\JUnit
10+
class PhpUnit extends \Codeception\PHPUnit\NonFinal\JUnit
1111
{
1212
const SUITE_LEVEL = 1;
1313
const FILE_LEVEL = 2;

0 commit comments

Comments
 (0)