From 4c1b56eaae4bb3f02f994ba47c2e5a225378e62f Mon Sep 17 00:00:00 2001 From: Fernando Herrero Date: Mon, 11 Apr 2022 00:31:16 +0200 Subject: [PATCH] Message in new tests, php version to 7.1 --- composer.json | 2 +- tests/strftimeTest.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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'); } }