From dbc38d4263e5a31b9aefdac48df4b9bf8c4a399b Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Mon, 9 Jul 2018 21:40:38 +0200 Subject: [PATCH] improved unittest --- tests/src/Core/SystemTest.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/src/Core/SystemTest.php b/tests/src/Core/SystemTest.php index 189e880107..acb9d32d3e 100644 --- a/tests/src/Core/SystemTest.php +++ b/tests/src/Core/SystemTest.php @@ -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 -- 2.39.5