From 8947cfc8cecc60359a502ef31a2dc68ed8ee5923 Mon Sep 17 00:00:00 2001 From: Ruben Van Assche Date: Fri, 24 Mar 2023 11:16:43 +0100 Subject: [PATCH] Fix tests --- tests/Collectors/DefaultCollectorTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Collectors/DefaultCollectorTest.php b/tests/Collectors/DefaultCollectorTest.php index e3b85e7..50b4f44 100644 --- a/tests/Collectors/DefaultCollectorTest.php +++ b/tests/Collectors/DefaultCollectorTest.php @@ -175,7 +175,7 @@ it('will will throw an exception with non existing transformers', function () { $this->expectException(InvalidTransformerGiven::class); - $this->expectDeprecationMessageMatches("/does not exist!/"); + $this->expectExceptionMessage("does not exist!"); /** * @typescript DtoTransformed @@ -192,7 +192,7 @@ it('will will throw an exception with class that does not implement transformer', function () { $this->expectException(InvalidTransformerGiven::class); - $this->expectDeprecationMessageMatches("/does not implement the Transformer interface!/"); + $this->expectExceptionMessage("does not implement the Transformer interface!"); /** * @typescript-transformer \Spatie\TypeScriptTransformer\Structures\TransformedType