Skip to content

Commit 5872ea9

Browse files
committed
Fixed test cases failing when the Intl extension is not installed
1 parent 5c38eef commit 5872ea9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/Constraints/CountryValidatorTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ public function getInvalidCountries()
107107

108108
public function testValidateUsingCountrySpecificLocale()
109109
{
110+
// in order to test with "en_GB"
111+
IntlTestHelper::requireFullIntl($this);
112+
110113
\Locale::setDefault('en_GB');
114+
111115
$existingCountry = 'GB';
112116
$this->context->expects($this->never())
113117
->method('addViolation');

0 commit comments

Comments
 (0)