Skip to content

Commit e458fc4

Browse files
committed
Enable PHPUnit 10 support
1 parent d848026 commit e458fc4

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"laravel/serializable-closure": "^1.0 || ^2.0"
3131
},
3232
"require-dev": {
33-
"phpunit/phpunit": "^9.6",
33+
"phpunit/phpunit": "^9.6 || ^10",
3434
"mnapoli/phpunit-easymock": "^1.3",
3535
"friendsofphp/proxy-manager-lts": "^1",
3636
"friendsofphp/php-cs-fixer": "^3",

tests/UnitTest/Definition/Resolver/ArrayResolverTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ public function should_resolve_nested_definitions()
5353
{
5454
$this->parentResolver->expects($this->exactly(2))
5555
->method('resolve')
56-
->withConsecutive(
56+
->willReturnMap([
5757
[$this->isInstanceOf(Reference::class)],
58-
[$this->isInstanceOf(ObjectDefinition::class)]
59-
)
58+
[$this->isInstanceOf(ObjectDefinition::class)],
59+
])
6060
->willReturnOnConsecutiveCalls(42, new \stdClass());
6161

6262
$definition = new ArrayDefinition([

tests/UnitTest/Definition/StringDefinitionTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ public function should_resolve_multiple_references()
7373
$container = $this->easySpy(ContainerInterface::class);
7474
$container->expects($this->exactly(2))
7575
->method('get')
76-
->withConsecutive(['tmp'], ['logs'])
76+
->willReturnMap([
77+
['tmp'],
78+
['logs'],
79+
])
7780
->willReturnOnConsecutiveCalls('/private/tmp', 'myapp-logs');
7881

7982
$definition = new StringDefinition('{tmp}/{logs}/app.log');

0 commit comments

Comments
 (0)