File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
src/Symfony/Component/Uid Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,15 @@ public function testV1()
9595 $ this ->assertSame ('3499710062d0 ' , $ uuid ->getNode ());
9696 }
9797
98+ public function testV1IsLowerCase ()
99+ {
100+ $ uuid = new UuidV1 ();
101+ $ this ->assertSame (strtolower ((string ) $ uuid ), (string ) $ uuid );
102+
103+ $ uuid = new UuidV1 ('D9E7A184-5D5B-11EA-A62A-3499710062D0 ' );
104+ $ this ->assertSame (strtolower ((string ) $ uuid ), (string ) $ uuid );
105+ }
106+
98107 public function testV3 ()
99108 {
100109 $ uuid = Uuid::v3 (new UuidV4 (self ::A_UUID_V4 ), 'the name ' );
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class UuidV1 extends Uuid implements TimeBasedUidInterface
2525 public function __construct (?string $ uuid = null )
2626 {
2727 if (null === $ uuid ) {
28- $ this ->uid = uuid_create (static ::TYPE );
28+ $ this ->uid = strtolower ( uuid_create (static ::TYPE ) );
2929 } else {
3030 parent ::__construct ($ uuid , true );
3131 }
You can’t perform that action at this time.
0 commit comments