Php – How to unit test symfony dto with constraint attributes
I have a newly created Symfony 7 app and I have a DTO called: AuthCallbackDto <?php declare(strict_types=1); namespace AppApplicationModelAuth; use SymfonyComponentValidatorConstraints as Assert; readonly class AuthCallbackDto { public function __construct( #[AssertNotBlank(message: 'The `code` value cannot be blank')] #[AssertLength(min: 5)] private…