Skip to content

Commit 93e3042

Browse files
committed
Add support of php 8.4 to cloud-patches
1 parent 9781bf4 commit 93e3042

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

src/Test/Unit/Command/Process/ApplyRequiredTest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,15 @@ public function testApplyWithException()
147147
$this->conflictProcessor->expects($this->once())
148148
->method('process')
149149
->with(
150-
$this->logicalOr($this->equalTo($outputMock), $this->equalTo($patch), $this->equalTo([]), $this->equalTo('Applier error message'))
150+
$this->logicalOr(
151+
$this->equalTo($outputMock),
152+
$this->equalTo($patch),
153+
$this->equalTo([]),
154+
$this->equalTo('Applier error message')
155+
)
151156
)
152157
->willThrowException(new RuntimeException('Error message'));
153-
158+
154159
$this->expectException(RuntimeException::class);
155160
$this->expectExceptionMessage('Error message');
156161

src/Test/Unit/Command/Process/Ece/ApplyOptionalTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ public function testApplyWithPatchEnvVariableProvided()
8989
$this->actionPool->expects($this->once())
9090
->method('execute')
9191
->with($inputMock, $outputMock, $configQualityPatches)
92-
->willReturnCallback(function ($input, $output, $config) use ($inputMock, $outputMock, $configQualityPatches) {
92+
->willReturnCallback(function ($input, $output, $config)
93+
use ($inputMock, $outputMock, $configQualityPatches) {
9394
if ($input === $inputMock && $output === $outputMock && $config === $configQualityPatches) {
9495
return true;
9596
}

src/Test/Unit/Command/Process/RevertTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ public function testRevertWithPatchArgumentProvided()
9595
$this->revertAction->expects($this->once())
9696
->method('execute')
9797
->with($inputMock, $outputMock, $cliPatchArgument)
98-
->willReturnCallback(function ($input, $output, $cliPatch) use ($inputMock, $outputMock, $cliPatchArgument) {
98+
->willReturnCallback(function ($input, $output, $cliPatch)
99+
use ($inputMock, $outputMock, $cliPatchArgument) {
99100
if ($input === $inputMock && $output === $outputMock && $cliPatch === $cliPatchArgument) {
100101
return true;
101102
}

src/Test/Unit/Command/Process/ShowStatusTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,10 @@ public function testShowStatus()
170170
$this->renderer->expects($this->once())
171171
->method('printTable')
172172
->with($outputMock, [$patch1, $patch2, $patch5])
173-
->willReturnCallback(function ($output, $patches) use ($outputMock, $patch, $patch2, $patch5) {
174-
if ($output === $outputMock && $patches === [$patch2] && $patches === [$patch2] && $patches === [$patch2]) {
173+
->willReturnCallback(function ($output, $patches)
174+
use ($outputMock, $patch, $patch2, $patch5) {
175+
if ($output === $outputMock && $patches === [$patch2]
176+
&& $patches === [$patch2] && $patches === [$patch2]) {
175177
return true;
176178
}
177179
return false;

0 commit comments

Comments
 (0)