Skip to content

Commit 737d519

Browse files
committed
minor symfony#57628 [String] test: kebab-case to snake_case (wmouwen)
This PR was merged into the 5.4 branch. Discussion ---------- [String] test: kebab-case to snake_case | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes? | New feature? | no | Deprecations? | no | Issues | - | License | MIT In Symfony 7.1.1, `kebab-case` strings casted to `snake_case` properly. The changes made in 7.1.2 broke this functionality and kept it `kebab-case`. It would be nice to have a `kebab-case` test added to the list to clearly define the expected behavior. Relates to: symfony#57497, symfony#57612, symfony#57616 Commits ------- a6d0f3b test: kebab-case to snake_case
2 parents e67bfc1 + a6d0f3b commit 737d519

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/String/Tests/AbstractAsciiTestCase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,8 @@ public static function provideSnake()
10701070
['x_y', 'x_y'],
10711071
['x_y', 'X_Y'],
10721072
['xu_yo', 'xu_yo'],
1073+
['symfony_is_great', 'symfony-is-great'],
1074+
['symfony_is_great', 'symfony.is.great'],
10731075
['symfony_is_great', 'symfonyIsGreat'],
10741076
['symfony5_is_great', 'symfony5IsGreat'],
10751077
['symfony5is_great', 'symfony5isGreat'],

0 commit comments

Comments
 (0)