Skip to content

Commit ce542e8

Browse files
[ci] Run minimal versions on appveyor only
1 parent f6f8f54 commit ce542e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/Constraints/AbstractComparisonValidatorTestCase.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ public function testInvalidComparisonToValue($dirtyValue, $dirtyValueAsString, $
7979
// Make sure we have the correct version loaded
8080
if ($dirtyValue instanceof \DateTime) {
8181
IntlTestHelper::requireIntl($this);
82+
83+
if (PHP_VERSION_ID < 50304 && !(extension_loaded('intl') && method_exists('IntlDateFormatter', 'setTimeZone'))) {
84+
$this->markTestSkipped('Intl supports formatting DateTime objects since 5.3.4');
85+
}
8286
}
8387

8488
$constraint = $this->createConstraint(array('value' => $comparedValue));

0 commit comments

Comments
 (0)