]> git.mxchange.org Git - friendica.git/commitdiff
improved unittest
authorPhilipp Holzer <admin@philipp.info>
Mon, 9 Jul 2018 19:40:38 +0000 (21:40 +0200)
committerPhilipp Holzer <admin@philipp.info>
Mon, 9 Jul 2018 19:40:38 +0000 (21:40 +0200)
tests/src/Core/SystemTest.php

index 189e880107d00102e10b97565195c5ff2296f5b4..acb9d32d3e89c08682b362612171dfdd2d332b00 100644 (file)
@@ -9,6 +9,7 @@ class SystemTest extends TestCase
 {
        private function assertGuid($guid, $length)
        {
+               print $guid;
                $this->assertRegExp("/^[a-z0-9]{" . $length . "}?$/", $guid);
        }
 
@@ -18,8 +19,13 @@ class SystemTest extends TestCase
                $this->assertGuid($guid, 16);
        }
 
-       function testGuidWithSize() {
-               $guid = System::createGUID(20);
-               $this->assertGuid($guid, 20);
+       function testGuidWithSize32() {
+               $guid = System::createGUID(32);
+               $this->assertGuid($guid, 32);
+       }
+
+       function testGuidWithSize64() {
+               $guid = System::createGUID(64);
+               $this->assertGuid($guid, 64);
        }
 }
\ No newline at end of file