8000 minor #49485 [String] Use same alphabet in ByteString::fromRandom tes… · symfony/symfony@ddfd2ac · GitHub
[go: up one dir, main page]

Skip to content

Commit ddfd2ac

Browse files
minor #49485 [String] Use same alphabet in ByteString::fromRandom test (kerbert101)
This PR was merged into the 5.4 branch. Discussion ---------- [String] Use same alphabet in ByteString::fromRandom test | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | NA | License | MIT | Doc PR | NA `testFromRandom` in `ByteStringTest` tests the fromRandom method in ByteString, but uses a different alphabet. Apparently, some characters were left out in the alphabet of ByteString to prevent confusion. I believe the same alphabet should be used in the test. Commits ------- d422ac1 [String] Use same alphabet for ByteString::fromRandom tests
2 parents 492d077 + d422ac1 commit ddfd2ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function testFromRandom()
2828

2929
self::assertSame(32, $random->length());
3030
foreach ($random->chunk() as $char) {
31-
self::assertNotNull((new ByteString('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'))->indexOf($char));
31+
self::assertNotNull((new ByteString('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'))->indexOf($char));
3232
}
3333
}
3434

0 commit comments

Comments
 (0)
0