Skip to content

Commit 725a46a

Browse files
committed
Add support of php 8.4 to cloud-patches
1 parent f0e46f4 commit 725a46a

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

src/Test/Unit/Patch/Collector/QualityCollectorTest.php

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,19 @@ public function testCollectSuccessful()
134134
)
135135
);
136136

137+
$this->PatchBuildertest();
138+
139+
$this->patchBuilder->expects($this->exactly(3))
140+
->method('build')
141+
->willReturn($this->createMock(Patch::class));
142+
143+
$this->assertTrue(is_array($this->collector->collect()));
144+
}
145+
146+
/**
147+
* patchBuilder function
148+
*/
149+
public function PatchBuildertest(){
137150
$this->patchBuilder->expects($this->exactly(3))
138151
->method('setType')
139152
->with(
@@ -193,12 +206,6 @@ public function testCollectSuccessful()
193206
$this->equalTo(true)
194207
)
195208
);
196-
197-
$this->patchBuilder->expects($this->exactly(3))
198-
->method('build')
199-
->willReturn($this->createMock(Patch::class));
200-
201-
$this->assertTrue(is_array($this->collector->collect()));
202209
}
203210

204211

0 commit comments

Comments
 (0)