mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Use newer assert* function for the one deprecated in PHPunit 9
This commit is contained in:
parent
a53d9ba08f
commit
2fc44c91e6
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ class BackupCodeGeneratorTest extends TestCase
|
|||
public function testGenerateSingleCode(int $code_length): void
|
||||
{
|
||||
$generator = new BackupCodeGenerator($code_length, 10);
|
||||
$this->assertRegExp("/^([a-f0-9]){{$code_length}}\$/", $generator->generateSingleCode());
|
||||
$this->assertMatchesRegularExpression("/^([a-f0-9]){{$code_length}}\$/", $generator->generateSingleCode());
|
||||
}
|
||||
|
||||
public function codeCountDataProvider(): array
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue