mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-19 21:59:00 +01:00
Fixed tests for new PHPunit 11.5
This commit is contained in:
@@ -47,7 +47,7 @@ class BackupCodeGeneratorTest extends TestCase
|
||||
new BackupCodeGenerator(4, 10);
|
||||
}
|
||||
|
||||
public function codeLengthDataProvider(): \Iterator
|
||||
public static function codeLengthDataProvider(): \Iterator
|
||||
{
|
||||
yield [6];
|
||||
yield [8];
|
||||
@@ -62,7 +62,7 @@ class BackupCodeGeneratorTest extends TestCase
|
||||
$this->assertMatchesRegularExpression("/^([a-f0-9]){{$code_length}}\$/", $generator->generateSingleCode());
|
||||
}
|
||||
|
||||
public function codeCountDataProvider(): \Iterator
|
||||
public static function codeCountDataProvider(): \Iterator
|
||||
{
|
||||
yield [2];
|
||||
yield [8];
|
||||
|
||||
Reference in New Issue
Block a user