From 3555b5de5dc5f53f17396e6c4c86bfae6e0cf816 Mon Sep 17 00:00:00 2001 From: Maxim Smakouz Date: Mon, 8 Jul 2024 10:46:08 +0300 Subject: [PATCH] Fix exception message --- src/Boot/src/BootloadManager/Checker/ClassExistsChecker.php | 2 +- src/Boot/tests/BootloadManager/BootloadersTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Boot/src/BootloadManager/Checker/ClassExistsChecker.php b/src/Boot/src/BootloadManager/Checker/ClassExistsChecker.php index 0d0f0b894..d36b1c610 100644 --- a/src/Boot/src/BootloadManager/Checker/ClassExistsChecker.php +++ b/src/Boot/src/BootloadManager/Checker/ClassExistsChecker.php @@ -20,7 +20,7 @@ public function canInitialize(BootloaderInterface|string $bootloader, ?BootloadC } if (!\class_exists($bootloader)) { - throw new ClassNotFoundException(\sprintf('Bootloader class `%s` is not exist.', $bootloader)); + throw new ClassNotFoundException(\sprintf('Bootloader class `%s` does not exist.', $bootloader)); } return true; diff --git a/src/Boot/tests/BootloadManager/BootloadersTest.php b/src/Boot/tests/BootloadManager/BootloadersTest.php index ecf472590..0778d223a 100644 --- a/src/Boot/tests/BootloadManager/BootloadersTest.php +++ b/src/Boot/tests/BootloadManager/BootloadersTest.php @@ -110,7 +110,7 @@ public function boot(BinderInterface $binder): void public function testException(): void { $this->expectException(\Spiral\Boot\Exception\ClassNotFoundException::class); - $this->expectExceptionMessage('Bootloader class `Foo\Bar\Invalid` is not exist.'); + $this->expectExceptionMessage('Bootloader class `Foo\Bar\Invalid` does not exist.'); $bootloader = $this->getBootloadManager(); $bootloader->bootload(['Foo\Bar\Invalid']);