Skip to content

Commit

Permalink
[Serializer] Fix CamelCaseToSnakeCaseNameConverterTest::testDenormali…
Browse files Browse the repository at this point in the history
…zeWithContext
  • Loading branch information
dunglas committed Aug 22, 2024
1 parent 86d2631 commit 0158b0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/NameConverter/CamelCaseToSnakeCaseNameConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ public static function attributeProvider()
public function testDenormalizeWithContext()
{
$nameConverter = new CamelCaseToSnakeCaseNameConverter(null, true);
$denormalizedValue = $nameConverter->denormalize('last_name', null, null, [CamelCaseToSnakeCaseNameConverter::REQUIRE_SNAKE_CASE_PROPERTIES]);
$denormalizedValue = $nameConverter->denormalize('last_name', null, null, [CamelCaseToSnakeCaseNameConverter::REQUIRE_SNAKE_CASE_PROPERTIES => true]);

$this->assertSame($denormalizedValue, 'lastName');
$this->assertSame('lastName', $denormalizedValue);
}

public function testErrorDenormalizeWithContext()
Expand Down

0 comments on commit 0158b0e

Please sign in to comment.