replace PHPUnit annotations with attributes (#5608)

This commit is contained in:
Kevin Papst
2025-08-11 18:57:42 +02:00
committed by GitHub
parent 04331420ae
commit 24778d3ffb
599 changed files with 1778 additions and 2313 deletions

View File

@@ -10,21 +10,21 @@
namespace App\Tests\Utils;
use App\Utils\NumberGenerator;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Utils\NumberGenerator
*/
#[CoversClass(NumberGenerator::class)]
class NumberGeneratorTest extends TestCase
{
/**
* @dataProvider getTestData
* @param string $format
* @param array<mixed> $options
* @param string $expected
* @param int $startWith
* @return void
*/
#[DataProvider('getTestData')]
public function testGenerateNumber(string $format, array $options, string $expected, int $startWith): void
{
$sut = new NumberGenerator($format, function (string $originalFormat, string $format, int $increaseBy) use ($options) {