File tree 2 files changed +10
-1
lines changed
src/Symfony/Component/Uid
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,15 @@ public function testV1()
90
90
$ this ->assertSame ('3499710062d0 ' , $ uuid ->getNode ());
91
91
}
92
92
93
+ public function testV1IsLowerCase ()
94
+ {
95
+ $ uuid = new UuidV1 ();
96
+ $ this ->assertSame (strtolower ((string ) $ uuid ), (string ) $ uuid );
97
+
98
+ $ uuid = new UuidV1 ('D9E7A184-5D5B-11EA-A62A-3499710062D0 ' );
99
+ $ this ->assertSame (strtolower ((string ) $ uuid ), (string ) $ uuid );
100
+ }
101
+
93
102
public function testV3 ()
94
103
{
95
104
$ 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
25
25
public function __construct (?string $ uuid = null )
26
26
{
27
27
if (null === $ uuid ) {
28
- $ this ->uid = uuid_create (static ::TYPE );
28
+ $ this ->uid = strtolower ( uuid_create (static ::TYPE ) );
29
29
} else {
30
30
parent ::__construct ($ uuid , true );
31
31
}
You can’t perform that action at this time.
0 commit comments