Skip to content

Commit 8736956

Browse files
committed
[Intl] Make tests pass after the ICU data update
1 parent 4787754 commit 8736956

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Tests/Constraints/AbstractComparisonValidatorTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function testInvalidComparisonToValue($dirtyValue, $dirtyValueAsString, $
128128
// Conversion of dates to string differs between ICU versions
129129
// Make sure we have the correct version loaded
130130
if ($dirtyValue instanceof \DateTime || $dirtyValue instanceof \DateTimeInterface) {
131-
IntlTestHelper::requireIntl($this);
131+
IntlTestHelper::requireIntl($this, '57.1');
132132

133133
if (PHP_VERSION_ID < 50304 && !(extension_loaded('intl') && method_exists('IntlDateFormatter', 'setTimeZone'))) {
134134
$this->markTestSkipped('Intl supports formatting DateTime objects since 5.3.4');

Tests/Constraints/RangeValidatorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public function testInvalidDatesMin($value, $dateTimeAsString)
287287
{
288288
// Conversion of dates to string differs between ICU versions
289289
// Make sure we have the correct version loaded
290-
IntlTestHelper::requireIntl($this);
290+
IntlTestHelper::requireIntl($this, '57.1');
291291

292292
$constraint = new Range(array(
293293
'min' => 'March 10, 2014',
@@ -310,7 +310,7 @@ public function testInvalidDatesMax($value, $dateTimeAsString)
310310
{
311311
// Conversion of dates to string differs between ICU versions
312312
// Make sure we have the correct version loaded
313-
IntlTestHelper::requireIntl($this);
313+
IntlTestHelper::requireIntl($this, '57.1');
314314

315315
$constraint = new Range(array(
316316
'max' => 'March 20, 2014',
@@ -333,7 +333,7 @@ public function testInvalidDatesCombinedMax($value, $dateTimeAsString)
333333
{
334334
// Conversion of dates to string differs between ICU versions
335335
// Make sure we have the correct version loaded
336-
IntlTestHelper::requireIntl($this);
336+
IntlTestHelper::requireIntl($this, '57.1');
337337

338338
$constraint = new Range(array(
339339
'min' => 'March 10, 2014',
@@ -358,7 +358,7 @@ public function testInvalidDatesCombinedMin($value, $dateTimeAsString)
358358
{
359359
// Conversion of dates to string differs between ICU versions
360360
// Make sure we have the correct version loaded
361-
IntlTestHelper::requireIntl($this);
361+
IntlTestHelper::requireIntl($this, '57.1');
362362

363363
$constraint = new Range(array(
364364
'min' => 'March 10, 2014',

0 commit comments

Comments
 (0)