File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Validator/Tests/Constraints Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Translation \Tests ;
13
13
14
+ use Symfony \Component \Intl \Util \IntlTestHelper ;
14
15
use Symfony \Component \Translation \IdentityTranslator ;
15
16
use Symfony \Component \Translation \MessageSelector ;
16
17
@@ -59,6 +60,9 @@ public function testGetSetLocale()
59
60
60
61
public function testGetLocaleReturnsDefaultLocaleIfNotSet ()
61
62
{
63
+ // in order to test with "pt_BR"
64
+ IntlTestHelper::requireFullIntl ($ this );
65
+
62
66
$ translator = new IdentityTranslator (new MessageSelector ());
63
67
64
68
\Locale::setDefault ('en ' );
Original file line number Diff line number Diff line change @@ -107,7 +107,11 @@ public function getInvalidCountries()
107
107
108
108
public function testValidateUsingCountrySpecificLocale ()
109
109
{
110
+ // in order to test with "en_GB"
111
+ IntlTestHelper::requireFullIntl ($ this );
112
+
110
113
\Locale::setDefault ('en_GB ' );
114
+
111
115
$ existingCountry = 'GB ' ;
112
116
$ this ->context ->expects ($ this ->never ())
113
117
->method ('addViolation ' );
You can’t perform that action at this time.
0 commit comments