|
| const | VALID_UUID4 = '/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$/' |
| |
| const | UUID4 = 'f47ac10b-58cc-4372-a567-0e02b2c3d479' |
| |
| const | NO_UUID = 'lorem ipsum dolor' |
| |
Definition at line 12 of file UuidTest.php.
◆ test_from_illegal_string()
| UuidTest::test_from_illegal_string |
( |
| ) |
|
@depends test_init
Definition at line 65 of file UuidTest.php.
65 : void
66 {
67 $this->expectException(InvalidUuidStringException::class);
68
71 }
References $factory.
◆ test_from_string()
| UuidTest::test_from_string |
( |
| ) |
|
@depends test_init
Definition at line 53 of file UuidTest.php.
53 : void
54 {
56 $uuid =
$factory->fromString(self::UUID4);
57
58 $this->assertMatchesRegularExpression(self::VALID_UUID4, $uuid->toString());
59 $this->assertEquals(self::UUID4, $uuid->toString());
60 }
References $factory.
◆ test_init()
◆ test_uuid4()
@depends test_init
Definition at line 30 of file UuidTest.php.
30 : void
31 {
34
35 $this->assertMatchesRegularExpression(self::VALID_UUID4, $uuid->toString());
36 }
References $factory.
◆ test_uuid4_string()
| UuidTest::test_uuid4_string |
( |
| ) |
|
@depends test_init
Definition at line 41 of file UuidTest.php.
41 : void
42 {
45
46 $this->assertIsString($uuid);
47 $this->assertMatchesRegularExpression(self::VALID_UUID4, $uuid);
48 }
References $factory.
◆ NO_UUID
| const UuidTest::NO_UUID = 'lorem ipsum dolor' |
|
private |
◆ UUID4
| const UuidTest::UUID4 = 'f47ac10b-58cc-4372-a567-0e02b2c3d479' |
|
private |
◆ VALID_UUID4
| const UuidTest::VALID_UUID4 = '/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$/' |
|
private |
The documentation for this class was generated from the following file: