From 0a620d196619b4f0992d45f4cad71c6eafb1490a Mon Sep 17 00:00:00 2001 From: Jessica Mauerhan Date: Fri, 30 Sep 2016 16:00:46 -0400 Subject: [PATCH] Added another failing test case for GH Issue $131 --- tests/UuidFactoryTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/UuidFactoryTest.php b/tests/UuidFactoryTest.php index a232b3c..b4ab300 100644 --- a/tests/UuidFactoryTest.php +++ b/tests/UuidFactoryTest.php @@ -24,4 +24,15 @@ class UuidFactoryTest extends TestCase $this->assertEquals('ff6f8cb0-c57d-11e1-9b21-0800200c9a66', $uuid->toString()); } + + public function testFromStringParsesUuidInLowercase() + { + $uuidString = 'ff6f8cb0-c57d-11e1-9b21-0800200c9a66'; + $uuidUpper = strtoupper($uuidString); + $factory = new UuidFactory(new FeatureSet(true)); + + $uuid = $factory->fromString($uuidUpper); + + $this->assertEquals($uuidString, $uuid->toString()); + } }