From 8442b9a6e441eaa479e33c6283685d9759f0c5da Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Sat, 13 May 2023 23:24:31 +0100 Subject: [PATCH] feat(describe): fixes missing `beforeAll` exception --- src/Repositories/BeforeAllRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Repositories/BeforeAllRepository.php b/src/Repositories/BeforeAllRepository.php index 26e18c5f..51736b41 100644 --- a/src/Repositories/BeforeAllRepository.php +++ b/src/Repositories/BeforeAllRepository.php @@ -5,7 +5,7 @@ declare(strict_types=1); namespace Pest\Repositories; use Closure; -use Pest\Exceptions\BeforeEachAlreadyExist; +use Pest\Exceptions\BeforeAllAlreadyExist; use Pest\Support\NullClosure; use Pest\Support\Reflection; @@ -39,7 +39,7 @@ final class BeforeAllRepository $filename = Reflection::getFileNameFromClosure($closure); if (array_key_exists($filename, $this->state)) { - throw new BeforeEachAlreadyExist($filename); + throw new BeforeAllAlreadyExist($filename); } $this->state[$filename] = $closure;