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,11 +10,10 @@
namespace App\Tests\Export\Package\CellFormatter;
use App\Export\Package\CellFormatter\ArrayFormatter;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Export\Package\CellFormatter\ArrayFormatter
*/
#[CoversClass(ArrayFormatter::class)]
class ArrayFormatterTest extends TestCase
{
public function testFormatValueReturnsCommaSeparatedStringForArray(): void

View File

@@ -10,11 +10,10 @@
namespace App\Tests\Export\Package\CellFormatter;
use App\Export\Package\CellFormatter\BooleanFormatter;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Export\Package\CellFormatter\BooleanFormatter
*/
#[CoversClass(BooleanFormatter::class)]
class BooleanFormatterTest extends TestCase
{
public function testFormatValueReturnsFalseForNull(): void

View File

@@ -10,11 +10,10 @@
namespace App\Tests\Export\Package\CellFormatter;
use App\Export\Package\CellFormatter\DateFormatter;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Export\Package\CellFormatter\DateFormatter
*/
#[CoversClass(DateFormatter::class)]
class DateFormatterTest extends TestCase
{
public function testGetFormat(): void

View File

@@ -10,11 +10,10 @@
namespace App\Tests\Export\Package\CellFormatter;
use App\Export\Package\CellFormatter\DateStringFormatter;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Export\Package\CellFormatter\DateStringFormatter
*/
#[CoversClass(DateStringFormatter::class)]
class DateStringFormatterTest extends TestCase
{
public function testFormatValueReturnsFormattedDateForDateTime(): void

View File

@@ -10,11 +10,10 @@
namespace App\Tests\Export\Package\CellFormatter;
use App\Export\Package\CellFormatter\DefaultFormatter;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Export\Package\CellFormatter\DefaultFormatter
*/
#[CoversClass(DefaultFormatter::class)]
class DefaultFormatterTest extends TestCase
{
public function testFormatValueReturnsSameValueForScalar(): void

View File

@@ -10,11 +10,10 @@
namespace App\Tests\Export\Package\CellFormatter;
use App\Export\Package\CellFormatter\DurationDecimalFormatter;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Export\Package\CellFormatter\DurationDecimalFormatter
*/
#[CoversClass(DurationDecimalFormatter::class)]
class DurationDecimalFormatterTest extends TestCase
{
public function testFormatValueReturnsFormattedDurationForNumericValue(): void

View File

@@ -10,11 +10,10 @@
namespace App\Tests\Export\Package\CellFormatter;
use App\Export\Package\CellFormatter\DurationFormatter;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Export\Package\CellFormatter\DurationFormatter
*/
#[CoversClass(DurationFormatter::class)]
class DurationFormatterTest extends TestCase
{
public function testGetFormat(): void

View File

@@ -10,11 +10,10 @@
namespace App\Tests\Export\Package\CellFormatter;
use App\Export\Package\CellFormatter\DurationPlainFormatter;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Export\Package\CellFormatter\DurationPlainFormatter
*/
#[CoversClass(DurationPlainFormatter::class)]
class DurationPlainFormatterTest extends TestCase
{
public function testFormatValueReturnsFormattedDurationQuiteLong(): void

View File

@@ -10,11 +10,10 @@
namespace App\Tests\Export\Package\CellFormatter;
use App\Export\Package\CellFormatter\RateFormatter;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Export\Package\CellFormatter\RateFormatter
*/
#[CoversClass(RateFormatter::class)]
class RateFormatterTest extends TestCase
{
public function testFormatValueReturnsFormattedFloatForNumericValue(): void

View File

@@ -10,11 +10,10 @@
namespace App\Tests\Export\Package\CellFormatter;
use App\Export\Package\CellFormatter\TextFormatter;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Export\Package\CellFormatter\TextFormatter
*/
#[CoversClass(TextFormatter::class)]
class TextFormatterTest extends TestCase
{
public function testFormatValueReturnsSanitizedStringWhenSanitizeDdeIsTrue(): void

View File

@@ -10,11 +10,10 @@
namespace App\Tests\Export\Package\CellFormatter;
use App\Export\Package\CellFormatter\TimeFormatter;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Export\Package\CellFormatter\TimeFormatter
*/
#[CoversClass(TimeFormatter::class)]
class TimeFormatterTest extends TestCase
{
public function testFormatValueReturnsFormattedTimeForDateTimeInterface(): void