File tree 4 files changed +4
-6
lines changed
src/Symfony/Component/Validator/Tests/Constraints 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ public function testInvalidCountries($country)
82
82
$ this ->validator ->validate ($ country , $ constraint );
83
83
84
84
$ this ->assertViolation ('myMessage ' , array (
85
- '{{ value }} ' => $ country ,
85
+ '{{ value }} ' => ' " ' . $ country. ' " ' ,
86
86
));
87
87
}
88
88
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public function testInvalidCurrencies($currency)
96
96
$ this ->validator ->validate ($ currency , $ constraint );
97
97
98
98
$ this ->assertViolation ('myMessage ' , array (
99
- '{{ value }} ' => $ currency ,
99
+ '{{ value }} ' => ' " ' . $ currency. ' " ' ,
100
100
));
101
101
}
102
102
Original file line number Diff line number Diff line change 14
14
use Symfony \Component \Intl \Util \IntlTestHelper ;
15
15
use Symfony \Component \Validator \Constraints \Language ;
16
16
use Symfony \Component \Validator \Constraints \LanguageValidator ;
17
- use Symfony \Component \Validator \Validation ;
18
17
19
18
class LanguageValidatorTest extends AbstractConstraintValidatorTest
20
19
{
@@ -83,7 +82,7 @@ public function testInvalidLanguages($language)
83
82
$ this ->validator ->validate ($ language , $ constraint );
84
83
85
84
$ this ->assertViolation ('myMessage ' , array (
86
- '{{ value }} ' => $ language ,
85
+ '{{ value }} ' => ' " ' . $ language. ' " ' ,
87
86
));
88
87
}
89
88
Original file line number Diff line number Diff line change 14
14
use Symfony \Component \Intl \Util \IntlTestHelper ;
15
15
use Symfony \Component \Validator \Constraints \Locale ;
16
16
use Symfony \Component \Validator \Constraints \LocaleValidator ;
17
- use Symfony \Component \Validator \Validation ;
18
17
19
18
class LocaleValidatorTest extends AbstractConstraintValidatorTest
20
19
{
@@ -85,7 +84,7 @@ public function testInvalidLocales($locale)
85
84
$ this ->validator ->validate ($ locale , $ constraint );
86
85
87
86
$ this ->assertViolation ('myMessage ' , array (
88
- '{{ value }} ' => $ locale ,
87
+ '{{ value }} ' => ' " ' . $ locale. ' " ' ,
89
88
));
90
89
}
91
90
You can’t perform that action at this time.
0 commit comments