Fixed tests for new PHPunit 11.5

This commit is contained in:
Jan Böhmer
2025-07-14 21:57:27 +02:00
parent f3ad3c1ffe
commit e2735823a0
44 changed files with 91 additions and 94 deletions

View File

@@ -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];