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

@@ -32,16 +32,18 @@ use App\Timesheet\RateServiceInterface;
use App\Validator\Constraints\TimesheetBudgetUsed;
use App\Validator\Constraints\TimesheetBudgetUsedValidator;
use DateTime;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
/**
* @covers \App\Validator\Constraints\TimesheetBudgetUsed
* @covers \App\Validator\Constraints\TimesheetBudgetUsedValidator
* @extends ConstraintValidatorTestCase<TimesheetBudgetUsedValidator>
*/
#[CoversClass(TimesheetBudgetUsed::class)]
#[CoversClass(TimesheetBudgetUsedValidator::class)]
class TimesheetBudgetUsedValidatorTest extends ConstraintValidatorTestCase
{
/**
@@ -268,9 +270,7 @@ class TimesheetBudgetUsedValidatorTest extends ConstraintValidatorTestCase
];
}
/**
* @dataProvider getViolationTestData
*/
#[DataProvider('getViolationTestData')]
public function testWithActivityTimeBudget(
?int $activityDuration,
?float $activityRate,