Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3d59e34

Browse files
committed
bug #11695 [Validators] Fixed failing tests requiring ICU 52.1 which are skipped otherwise (webmozart)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #11695). Discussion ---------- [Validators] Fixed failing tests requiring ICU 52.1 which are skipped otherwise | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - I just ran the tests with ICU 52.1 installed and noticed that a few of them failed. This PR fixes these tests. Commits ------- 5440ed5 [Validators] Fixed failing tests requiring ICU 52.1 which are skipped otherwise
2 parents f825f5d + 5440ed5 commit 3d59e34

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

src/Symfony/Component/Validator/Tests/Constraints/CountryValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function testInvalidCountries($country)
8282
$this->validator->validate($country, $constraint);
8383

8484
$this->assertViolation('myMessage', array(
85-
'{{ value }}' => $country,
85+
'{{ value }}' => '"'.$country.'"',
8686
));
8787
}
8888

src/Symfony/Component/Validator/Tests/Constraints/CurrencyValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function testInvalidCurrencies($currency)
9696
$this->validator->validate($currency, $constraint);
9797

9898
$this->assertViolation('myMessage', array(
99-
'{{ value }}' => $currency,
99+
'{{ value }}' => '"'.$currency.'"',
100100
));
101101
}
102102

src/Symfony/Component/Validator/Tests/Constraints/LanguageValidatorTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Symfony\Component\Intl\Util\IntlTestHelper;
1515
use Symfony\Component\Validator\Constraints\Language;
1616
use Symfony\Component\Validator\Constraints\LanguageValidator;
17-
use Symfony\Component\Validator\Validation;
1817

1918
class LanguageValidatorTest extends AbstractConstraintValidatorTest
2019
{
@@ -83,7 +82,7 @@ public function testInvalidLanguages($language)
8382
$this->validator->validate($language, $constraint);
8483

8584
$this->assertViolation('myMessage', array(
86-
'{{ value }}' => $language,
85+
'{{ value }}' => '"'.$language.'"',
8786
));
8887
}
8988

src/Symfony/Component/Validator/Tests/Constraints/LocaleValidatorTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Symfony\Component\Intl\Util\IntlTestHelper;
1515
use Symfony\Component\Validator\Constraints\Locale;
1616
use Symfony\Component\Validator\Constraints\LocaleValidator;
17-
use Symfony\Component\Validator\Validation;
1817

1918
class LocaleValidatorTest extends AbstractConstraintValidatorTest
2019
{
@@ -85,7 +84,7 @@ public function testInvalidLocales($locale)
8584
$this->validator->validate($locale, $constraint);
8685

8786
$this->assertViolation('myMessage', array(
88-
'{{ value }}' => $locale,
87+
'{{ value }}' => '"'.$locale.'"',
8988
));
9089
}
9190

0 commit comments

Comments
 (0)