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, ), ); 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]); } } }