@@ -32,7 +32,7 @@ public function testThrowsConstraintExceptionIfBothMinLimitAndPropertyPathNamed(
32
32
{
33
33
$ this ->expectException (\Symfony \Component \Validator \Exception \ConstraintDefinitionException::class);
34
34
$ this ->expectExceptionMessage ('requires only one of the "min" or "minPropertyPath" options to be set, not both. ' );
35
- eval ( ' new \Symfony\Component\Validator\Constraints\ Range(min: " min" , minPropertyPath: " minPropertyPath"); ' );
35
+ new Range (min: ' min ' , minPropertyPath: ' minPropertyPath ' );
36
36
}
37
37
38
38
public function testThrowsConstraintExceptionIfBothMaxLimitAndPropertyPath ()
@@ -49,7 +49,7 @@ public function testThrowsConstraintExceptionIfBothMaxLimitAndPropertyPathNamed(
49
49
{
50
50
$ this ->expectException (\Symfony \Component \Validator \Exception \ConstraintDefinitionException::class);
51
51
$ this ->expectExceptionMessage ('requires only one of the "max" or "maxPropertyPath" options to be set, not both. ' );
52
- eval ( ' new \Symfony\Component\Validator\Constraints\ Range(max: " max" , maxPropertyPath: " maxPropertyPath"); ' );
52
+ new Range (max: ' max ' , maxPropertyPath: ' maxPropertyPath ' );
53
53
}
54
54
55
55
public function testThrowsConstraintExceptionIfNoLimitNorPropertyPath ()
@@ -69,6 +69,6 @@ public function testThrowsConstraintDefinitionExceptionIfBothMinAndMaxAndMinMess
69
69
{
70
70
$ this ->expectException (\Symfony \Component \Validator \Exception \ConstraintDefinitionException::class);
71
71
$ this ->expectExceptionMessage ('can not use "minMessage" and "maxMessage" when the "min" and "max" options are both set. Use "notInRangeMessage" instead. ' );
72
- eval ( ' new \Symfony\Component\Validator\Constraints\ Range(min: " min" , max: " max" , minMessage: " minMessage" , maxMessage: " maxMessage"); ' );
72
+ new Range (min: ' min ' , max: ' max ' , minMessage: ' minMessage ' , maxMessage: ' maxMessage ' );
73
73
}
74
74
}
0 commit comments