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