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,16 +10,14 @@
namespace App\Tests\Timesheet;
use App\Timesheet\Util;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Timesheet\Util
*/
#[CoversClass(Util::class)]
class UtilTest extends TestCase
{
/**
* @dataProvider getRateCalculationData
*/
#[DataProvider('getRateCalculationData')]
public function testCalculateRate(int|float $hourlyRate, int $duration, int|float $expectedRate): void
{
self::assertEquals($expectedRate, Util::calculateRate($hourlyRate, $duration));