replace PHPUnit annotations with attributes (#5608)
This commit is contained in:
@@ -15,15 +15,16 @@ use App\Entity\Project;
|
||||
use App\Entity\Timesheet;
|
||||
use App\Validator\Constraints\TimesheetDeactivated;
|
||||
use App\Validator\Constraints\TimesheetDeactivatedValidator;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use Symfony\Component\Validator\Constraints\NotBlank;
|
||||
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
||||
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
|
||||
|
||||
/**
|
||||
* @covers \App\Validator\Constraints\TimesheetDeactivated
|
||||
* @covers \App\Validator\Constraints\TimesheetDeactivatedValidator
|
||||
* @extends ConstraintValidatorTestCase<TimesheetDeactivatedValidator>
|
||||
*/
|
||||
#[CoversClass(TimesheetDeactivated::class)]
|
||||
#[CoversClass(TimesheetDeactivatedValidator::class)]
|
||||
class TimesheetDeactivatedValidatorTest extends ConstraintValidatorTestCase
|
||||
{
|
||||
protected function createValidator(): TimesheetDeactivatedValidator
|
||||
|
||||
Reference in New Issue
Block a user