diff --git a/tests/unit/handlers/CookieHandlerTest.php b/tests/unit/handlers/CookieHandlerTest.php
index <HASH>..<HASH> 100644
--- a/tests/unit/handlers/CookieHandlerTest.php
+++ b/tests/unit/handlers/CookieHandlerTest.php
@@ -48,7 +48,7 @@ class CookieHandlerTest extends AbstractUnitTest
             'class' => 'stdClass',
         ];
         $this->tester->expectException(
-            InvalidConfigException::class,
+            get_class(new InvalidConfigException()),
             function () use ($cookieConfig) {
                 $this->mockWebApplication();
                 new CookieHandler([
fix php <I> error "Constant ::class appears in <I>+"