This commit is contained in:
2022-11-25 21:21:30 +01:00
parent 2d6df0d5f0
commit 94deb06f52
132 changed files with 44887 additions and 41368 deletions

View File

@@ -1,4 +1,5 @@
<?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
@@ -12,16 +13,16 @@ use Domframework\Uuid;
/** Test the Uuid.php file */
class UuidTest extends \PHPUnit_Framework_TestCase
{
public function test_uuid1 ()
{
$res = Uuid::uuid4 ();
$this->assertRegExp (36, strlen ($res));
}
public function test_uuid1()
{
$res = Uuid::uuid4();
$this->assertRegExp(36, strlen($res));
}
public function test_uuid2 ()
{
$res = Uuid::uuid4 ();
$this->assertRegExp (true, strspn ("0123456789abcdef-", $res) ==
strlen ($res));
}
public function test_uuid2()
{
$res = Uuid::uuid4();
$this->assertRegExp(true, strspn("0123456789abcdef-", $res) ==
strlen($res));
}
}