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

Skip to content

[Validators] Fixed failing tests requiring ICU 52.1 which are skipped otherwise #11695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function testInvalidCountries($country)
$this->validator->validate($country, $constraint);

$this->assertViolation('myMessage', array(
'{{ value }}' => $country,
'{{ value }}' => '"'.$country.'"',
));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function testInvalidCurrencies($currency)
$this->validator->validate($currency, $constraint);

$this->assertViolation('myMessage', array(
'{{ value }}' => $currency,
'{{ value }}' => '"'.$currency.'"',
));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Symfony\Component\Intl\Util\IntlTestHelper;
use Symfony\Component\Validator\Constraints\Language;
use Symfony\Component\Validator\Constraints\LanguageValidator;
use Symfony\Component\Validator\Validation;

class LanguageValidatorTest extends AbstractConstraintValidatorTest
{
Expand Down Expand Up @@ -83,7 +82,7 @@ public function testInvalidLanguages($language)
$this->validator->validate($language, $constraint);

$this->assertViolation('myMessage', array(
'{{ value }}' => $language,
'{{ value }}' => '"'.$language.'"',
));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Symfony\Component\Intl\Util\IntlTestHelper;
use Symfony\Component\Validator\Constraints\Locale;
use Symfony\Component\Validator\Constraints\LocaleValidator;
use Symfony\Component\Validator\Validation;

class LocaleValidatorTest extends AbstractConstraintValidatorTest
{
Expand Down Expand Up @@ -85,7 +84,7 @@ public function testInvalidLocales($locale)
$this->validator->validate($locale, $constraint);

$this->assertViolation('myMessage', array(
'{{ value }}' => $locale,
'{{ value }}' => '"'.$locale.'"',
));
}

Expand Down