PHP 7.1 compatibility

This commit is contained in:
ArthurHoaro 2020-05-17 15:45:26 +02:00
parent c4d5be53c2
commit 029ada5a07

View file

@ -419,7 +419,7 @@ public function testValidRssControllerInvokeDefault(): void
$day = $assignedVariables['days'][$dates[0]->format('Ymd')];
static::assertEquals($dates[0], $day['date']);
static::assertSame($dates[0]->format(\DateTimeInterface::RSS), $day['date_rss']);
static::assertSame($dates[0]->format(\DateTime::RSS), $day['date_rss']);
static::assertSame(format_date($dates[0], false), $day['date_human']);
static::assertSame('http://shaarli/daily?day='. $dates[0]->format('Ymd'), $day['absolute_url']);
static::assertCount(1, $day['links']);
@ -430,7 +430,7 @@ public function testValidRssControllerInvokeDefault(): void
$day = $assignedVariables['days'][$dates[1]->format('Ymd')];
static::assertEquals($dates[1], $day['date']);
static::assertSame($dates[1]->format(\DateTimeInterface::RSS), $day['date_rss']);
static::assertSame($dates[1]->format(\DateTime::RSS), $day['date_rss']);
static::assertSame(format_date($dates[1], false), $day['date_human']);
static::assertSame('http://shaarli/daily?day='. $dates[1]->format('Ymd'), $day['absolute_url']);
static::assertCount(2, $day['links']);