chore: upgrade phpunit to 12.5
This commit is contained in:
1 parent
da039d0527
commit
849da8d471
53 files changed
+832
-856
No files matched your search
@@ -67,10 +67,10 @@ class DestinationTraitTest extends TestCase
|
||||
*/
|
||||
private function harness(?Hotel $hotel, array $pickups = []): object
|
||||
{
|
||||
$hotelProvider = $this->createMock(HotelDataProvider::class);
|
||||
$hotelProvider = $this->createStub(HotelDataProvider::class);
|
||||
$hotelProvider->method('get')->willReturn($hotel);
|
||||
|
||||
$pickupProvider = $this->createMock(PickupDataProvider::class);
|
||||
$pickupProvider = $this->createStub(PickupDataProvider::class);
|
||||
$pickupProvider->method('get')->willReturnCallback(fn ($id) => $pickups[$id] ?? null);
|
||||
|
||||
return new class($hotelProvider, $pickupProvider) {
|
||||
|
||||
Reference in new issue
Block a user