namespace Symfony\Component\Security\Core\Tests\Validator\Constraints;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Security\Core\Validator\Constraints\UserPassword;
use Symfony\Component\Validator\Mapping\ClassMetadata;
use Symfony\Component\Validator\Mapping\Loader\AttributeLoader;
class UserPasswordTest extends TestCase
{ public function testValidatedByStandardValidator() { $constraint =
new UserPassword();
self::
assertSame('security.validator.user_password',
$constraint->
validatedBy());
} /**
* @dataProvider provideServiceValidatedConstraints
*/
public function testValidatedByService(UserPassword
$constraint) { self::
assertSame('my_service',
$constraint->
validatedBy());
}