From d3118a84ef3c9f269e7ac2444099274e9b441211 Mon Sep 17 00:00:00 2001 From: brendt Date: Thu, 14 Aug 2025 09:28:40 +0200 Subject: [PATCH 1/2] wip --- src/Tempest/Framework/Testing/Http/TestResponseHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tempest/Framework/Testing/Http/TestResponseHelper.php b/src/Tempest/Framework/Testing/Http/TestResponseHelper.php index 5a244b98a..eb29cf559 100644 --- a/src/Tempest/Framework/Testing/Http/TestResponseHelper.php +++ b/src/Tempest/Framework/Testing/Http/TestResponseHelper.php @@ -142,8 +142,8 @@ public function assertStatus(Status $expected): self actual: $this->status, message: sprintf( 'Failed asserting status [%s] matched expected status of [%s].', - $expected->value, $this->status->value, + $expected->value, ), ); From c13e470236d1b4b643f22190ee9db0d5f0924b2e Mon Sep 17 00:00:00 2001 From: brendt Date: Thu, 14 Aug 2025 09:36:13 +0200 Subject: [PATCH 2/2] wip --- tests/Integration/Route/RequestToObjectMapperTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Integration/Route/RequestToObjectMapperTest.php b/tests/Integration/Route/RequestToObjectMapperTest.php index 67d0e20bf..d22b9a2c3 100644 --- a/tests/Integration/Route/RequestToObjectMapperTest.php +++ b/tests/Integration/Route/RequestToObjectMapperTest.php @@ -140,7 +140,7 @@ public function test_missing_enum_value(): void try { map($request)->to(RequestWithEnum::class); } catch (ValidationFailed $validationFailed) { - $this->assertInstanceOf(NotNull::class, $validationFailed->failingRules['enumParam'][0]); + $this->assertInstanceOf(IsNotNull::class, $validationFailed->failingRules['enumParam'][0]); } } }