replace PHPUnit annotations with attributes (#5608)
This commit is contained in:
@@ -12,15 +12,16 @@ namespace App\Tests\Validator\Constraints;
|
||||
use App\Entity\Timesheet;
|
||||
use App\Validator\Constraints\TimesheetNegativeDuration;
|
||||
use App\Validator\Constraints\TimesheetNegativeDurationValidator;
|
||||
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\TimesheetNegativeDuration
|
||||
* @covers \App\Validator\Constraints\TimesheetNegativeDurationValidator
|
||||
* @extends ConstraintValidatorTestCase<TimesheetNegativeDurationValidator>
|
||||
*/
|
||||
#[CoversClass(TimesheetNegativeDuration::class)]
|
||||
#[CoversClass(TimesheetNegativeDurationValidator::class)]
|
||||
class TimesheetNegativeDurationValidatorTest extends ConstraintValidatorTestCase
|
||||
{
|
||||
protected function createValidator(): TimesheetNegativeDurationValidator
|
||||
|
||||
Reference in New Issue
Block a user