Replace assertRegExp() assertMatchesRegularExpression()
This commit is contained in:
parent
f4907a48d8
commit
015de29b7b
4 changed files with 7 additions and 7 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue