Skip to content

Commit 016a035

Browse files
authored
Merge pull request #20 from Codeception/phpunit-8.4
Compatibility with PHPUnit 8.4
2 parents eea5187 + 4594329 commit 016a035

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
language: php
22

33
php:
4-
- 7
5-
- 7.1
64
- 7.2
75
- 7.3
86

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
},
1212
"require": {
13-
"codeception/phpunit-wrapper": "^6.6.1 | ^7.7.1 | ^8.0.3",
14-
"phpunit/phpunit": ">=6.5 <9.0"
13+
"codeception/phpunit-wrapper": "^8.0.4",
14+
"phpunit/phpunit": "^8.4"
1515
}
1616
}

src/Stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Codeception\Stub\ConsecutiveMap;
55
use Codeception\Stub\StubMarshaler;
66
use PHPUnit\Framework\MockObject\Generator;
7-
use PHPUnit\Framework\MockObject\Matcher\AnyInvokedCount;
7+
use PHPUnit\Framework\MockObject\Rule\AnyInvokedCount;
88
use PHPUnit\Framework\MockObject\Stub\ConsecutiveCalls;
99
use PHPUnit\Framework\MockObject\Stub\ReturnCallback;
1010
use PHPUnit\Framework\MockObject\Stub\ReturnStub;

src/Stub/Expected.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Codeception\Stub;
44

5-
use PHPUnit\Framework\MockObject\Matcher\InvokedAtLeastOnce;
6-
use PHPUnit\Framework\MockObject\Matcher\InvokedCount;
5+
use PHPUnit\Framework\MockObject\Rule\InvokedAtLeastOnce;
6+
use PHPUnit\Framework\MockObject\Rule\InvokedCount;
77

88
class Expected
99
{

src/Stub/StubMarshaler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Codeception\Stub;
44

5-
use PHPUnit\Framework\MockObject\Matcher\InvokedRecorder;
5+
use PHPUnit\Framework\MockObject\Rule\InvocationOrder;
66

77
/**
88
* Holds matcher and value of mocked method
@@ -13,7 +13,7 @@ class StubMarshaler
1313

1414
private $methodValue;
1515

16-
public function __construct(InvokedRecorder $matcher, $value)
16+
public function __construct(InvocationOrder $matcher, $value)
1717
{
1818
$this->methodMatcher = $matcher;
1919
$this->methodValue = $value;

0 commit comments

Comments
 (0)