Replace assertRegExp() assertMatchesRegularExpression()

This commit is contained in:
Philipp
2021-12-12 20:19:52 +01:00
parent f4907a48d8
commit 015de29b7b
4 changed files with 7 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ class SystemTest extends TestCase
private function assertGuid($guid, $length, $prefix = '')
{
$length -= strlen($prefix);
self::assertRegExp("/^" . $prefix . "[a-z0-9]{" . $length . "}?$/", $guid);
self::assertMatchesRegularExpression("/^" . $prefix . "[a-z0-9]{" . $length . "}?$/", $guid);
}
public function testGuidWithoutParameter()