Improve test coverage

This commit is contained in:
Ben Ramsey
2020-02-26 20:17:49 -06:00
parent ba7c1c17ce
commit 0bd312f944
17 changed files with 540 additions and 5 deletions
+9
View File
@@ -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());
}
}