mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
Improve test coverage
This commit is contained in:
@@ -74,4 +74,13 @@ class GenericValidatorTest extends TestCase
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
public function testGetPattern(): void
|
||||
{
|
||||
$expectedPattern = '^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$';
|
||||
|
||||
$validator = new GenericValidator();
|
||||
|
||||
$this->assertSame($expectedPattern, $validator->getPattern());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user