Browse Source

Don't test FormatterDate DATE_ATOM with PHP 5.5 (#17879)

tags/2.0.33
Alexander Makarov 5 years ago committed by GitHub
parent
commit
215862a91e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tests/framework/i18n/FormatterDateTest.php

2
tests/framework/i18n/FormatterDateTest.php

@ -196,7 +196,9 @@ class FormatterDateTest extends TestCase
$value = new \DateTimeImmutable();
$this->assertRegExp(date('~M j, Y,? g:i:s A~', $value->getTimestamp()), $this->formatter->asDatetime($value));
$this->assertSame(date('Y/m/d h:i:s A', $value->getTimestamp()), $this->formatter->asDatetime($value, 'php:Y/m/d h:i:s A'));
}
if (PHP_VERSION_ID >= 50600) {
// DATE_ATOM
$value = time();
$this->assertEquals(date(DATE_ATOM, $value), $this->formatter->asDatetime($value, 'php:' . DATE_ATOM));

Loading…
Cancel
Save