diff --git a/composer.json b/composer.json index fe58f8b..0e570c8 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "source": "https://github.com/alphp/strftime" }, "require": { - "php": ">=5.6.0", + "php": ">=7.1.0", "ext-intl" : "*" }, "require-dev": { diff --git a/tests/strftimeTest.php b/tests/strftimeTest.php index 0db3e0f..7ba526f 100644 --- a/tests/strftimeTest.php +++ b/tests/strftimeTest.php @@ -190,16 +190,16 @@ public function testJulianCutover () { // 1st October 1582 in proleptic Gregorian is the same date as 21st September 1582 Julian $prolepticTimestamp = DateTimeImmutable::createFromFormat('Y-m-d|', '1582-10-01')->getTimestamp(); $result = strftime('%x', $prolepticTimestamp, 'eu'); - $this->assertEquals('82/10/1', $result); + $this->assertEquals('82/10/1', $result, '1st October 1582 in proleptic Gregorian is the same date as 21st September 1582 Julian'); // In much of Europe, the 10th October 1582 never existed $prolepticTimestamp = DateTimeImmutable::createFromFormat('Y-m-d|', '1582-10-10')->getTimestamp(); $result = strftime('%x', $prolepticTimestamp, 'eu'); - $this->assertEquals('82/10/10', $result); + $this->assertEquals('82/10/10', $result, 'In much of Europe, the 10th October 1582 never existed'); // The 15th October was the first day after the cutover, after which both systems agree $prolepticTimestamp = DateTimeImmutable::createFromFormat('Y-m-d|', '1582-10-15')->getTimestamp(); $result = strftime('%x', $prolepticTimestamp, 'eu'); - $this->assertEquals('82/10/15', $result); + $this->assertEquals('82/10/15', $result, 'The 15th October was the first day after the cutover, after which both systems agree'); } }