8000 [Intl] Fix intl tests for PHP < 5.5.10 · symfony/symfony@fab0629 · GitHub
[go: up one dir, main page]

Skip to content

Commit fab0629

Browse files
committed
[Intl] Fix intl tests for PHP < 5.5.10
1 parent 2f7f587 commit fab0629

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/Symfony/Component/Intl/Tests/DateFormatter/AbstractIntlDateFormatterTest.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public function formatWithTimezoneProvider()
342342

343343
/**
344344
* @dataProvider formatTimezoneProvider
345-
* @requires PHP 5.5
345+
* @requires PHP 5.5.10
346346
*/
347347
public function testFormatTimezone($pattern, $timezone, $expected)
348348
{
@@ -459,15 +459,11 @@ public function testFormatWithConstructorTimezone()
459459
);
460460
}
461461

462+
/**
463+
* @requires PHP 5.5.10
464+
*/
462465
public function testFormatWithDateTimeZoneGmt()
463466
{
464-
if (PHP_VERSION_ID < 50500 && !(extension_loaded('intl') && method_exists('IntlDateFormatter', 'setTimeZone'))) {
465-
$this->markTestSkipped('Only in PHP 5.5+ IntlDateFormatter allows to use DateTimeZone objects.');
466-
}
467-
if (PHP_VERSION_ID < 50510) {
468-
$this->markTestSkipped('Before PHP 5.5.10 the GMT timezone used to be converted to UTC.');
469-
}
470-
471467
$formatter = $this->getDateFormatter('en', IntlDateFormatter::MEDIUM, IntlDateFormatter::SHORT, new \DateTimeZone('GMT'), IntlDateFormatter::GREGORIAN, 'zzz');
472468

473469
$this->assertEquals('GMT', $formatter->format(0));

0 commit comments

Comments
 (0)
0