1
0
Fork 0

Replace assertRegExp() assertMatchesRegularExpression()

This commit is contained in:
Philipp Holzer 2021-12-12 20:19:52 +01:00
commit 015de29b7b
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
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()