3 declare(strict_types=1);
     5 require_once(
"libs/composer/vendor/autoload.php");
    14     private const VALID_UUID4 = 
'/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$/';
    16     private const UUID4 = 
'f47ac10b-58cc-4372-a567-0e02b2c3d479';
    17     private const NO_UUID = 
'lorem ipsum dolor';
    33         $uuid = $factory->uuid4();
    35         $this->assertMatchesRegularExpression(self::VALID_UUID4, $uuid->toString());
    44         $uuid = $factory->uuid4AsString();
    46         $this->assertIsString($uuid);
    47         $this->assertMatchesRegularExpression(self::VALID_UUID4, $uuid);
    56         $uuid = $factory->fromString(self::UUID4);
    58         $this->assertMatchesRegularExpression(self::VALID_UUID4, $uuid->toString());
    59         $this->assertEquals(self::UUID4, $uuid->toString());
    67         $this->expectException(InvalidUuidStringException::class);
    70         $factory->fromString(self::NO_UUID);
 
test_from_string()
test_init 
 
test_from_illegal_string()
test_init 
 
test_uuid4_string()
test_init