replace PHPUnit annotations with attributes (#5608)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user