From 5050ae304fc85208c6f36a3f22faee432779afd4 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 5 Sep 2024 01:24:55 +0100 Subject: [PATCH] fixes tests --- src/PendingCalls/TestCall.php | 2 +- tests/Arch.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PendingCalls/TestCall.php b/src/PendingCalls/TestCall.php index 1a325d34..a9befed1 100644 --- a/src/PendingCalls/TestCall.php +++ b/src/PendingCalls/TestCall.php @@ -520,7 +520,7 @@ final class TestCall public function covers(array|string ...$classesOrFunctions): self { /** @var array $classesOrFunctions */ - $classesOrFunctions = array_reduce($classesOrFunctions, fn ($carry, $item): array => is_array($item) ? array_merge($carry, $item) : array_merge($carry, [$item]), []); + $classesOrFunctions = array_reduce($classesOrFunctions, fn ($carry, $item): array => is_array($item) ? array_merge($carry, $item) : array_merge($carry, [$item]), []); // @pest-ignore-type foreach ($classesOrFunctions as $classOrFunction) { $isClass = class_exists($classOrFunction) || trait_exists($classOrFunction) || interface_exists($classOrFunction) || enum_exists($classOrFunction); diff --git a/tests/Arch.php b/tests/Arch.php index 946bf71d..d8deb460 100644 --- a/tests/Arch.php +++ b/tests/Arch.php @@ -37,7 +37,9 @@ arch('dependencies') 'Termwind', 'ParaTest', 'Pest\Arch', + 'Pest\Mutate\Contracts\Configuration', 'Pest\Mutate\Decorators\TestCallDecorator', + 'Pest\Mutate\Repositories\ConfigurationRepository', 'Pest\Plugin', 'NunoMaduro\Collision', 'Whoops',