use PHPUnit\Framework\TestCase;
use Symfony\Component\Validator\Constraints\ExpressionSyntax;
use Symfony\Component\Validator\Constraints\ExpressionSyntaxValidator;
use Symfony\Component\Validator\Mapping\ClassMetadata;
use Symfony\Component\Validator\Mapping\Loader\AttributeLoader;
class ExpressionSyntaxTest extends TestCase
{ public function testValidatedByStandardValidator() { $constraint =
new ExpressionSyntax();
self::
assertSame(ExpressionSyntaxValidator::
class,
$constraint->
validatedBy());
} /**
* @dataProvider provideServiceValidatedConstraints
*/
public function testValidatedByService(ExpressionSyntax
$constraint) { self::
assertSame('my_service',
$constraint->
validatedBy());
}