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

Commit e963542

Browse files
authored
Merge pull request #59 from Codeception/test-phpunit-8
PhpUnit 8 support
2 parents 3c0da1e + ab9ba19 commit e963542

File tree

13 files changed

+1926
-12
lines changed

13 files changed

+1926
-12
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/Constraint/JsonContains.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class JsonContains extends \PHPUnit\Framework\Constraint\Constraint
1616

1717
public function __construct(array $expected)
1818
{
19-
parent::__construct();
2019
$this->expected = $expected;
2120
}
2221

src/Constraint/JsonType.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class JsonType extends \PHPUnit\Framework\Constraint\Constraint
1212

1313
public function __construct(array $jsonType, $match = true)
1414
{
15-
parent::__construct();
1615
$this->jsonType = $jsonType;
1716
$this->match = $match;
1817
}

src/Constraint/Page.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class Page extends \PHPUnit\Framework\Constraint\Constraint
1010

1111
public function __construct($string, $uri = '')
1212
{
13-
parent::__construct();
1413
$this->string = $this->normalizeText((string)$string);
1514
$this->uri = $uri;
1615
}

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)