aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-05-17 15:45:26 +0200
committerArthurHoaro <arthur@hoa.ro>2020-07-23 21:19:21 +0200
commit029ada5a071240fd10f3557fd3c0fc865c54c5a8 (patch)
treeb2c79f0c46ef2dd477b0a643ab53b720ee364e66
parentc4d5be53c2ae503c00da3cfe6b28d0ce9d2ca7f5 (diff)
downloadShaarli-029ada5a071240fd10f3557fd3c0fc865c54c5a8.tar.gz
Shaarli-029ada5a071240fd10f3557fd3c0fc865c54c5a8.tar.zst
Shaarli-029ada5a071240fd10f3557fd3c0fc865c54c5a8.zip
PHP 7.1 compatibility
-rw-r--r--tests/front/controller/DailyControllerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/front/controller/DailyControllerTest.php b/tests/front/controller/DailyControllerTest.php
index 72a0339f..88ec116b 100644
--- a/tests/front/controller/DailyControllerTest.php
+++ b/tests/front/controller/DailyControllerTest.php
@@ -419,7 +419,7 @@ class DailyControllerTest extends TestCase
419 $day = $assignedVariables['days'][$dates[0]->format('Ymd')]; 419 $day = $assignedVariables['days'][$dates[0]->format('Ymd')];
420 420
421 static::assertEquals($dates[0], $day['date']); 421 static::assertEquals($dates[0], $day['date']);
422 static::assertSame($dates[0]->format(\DateTimeInterface::RSS), $day['date_rss']); 422 static::assertSame($dates[0]->format(\DateTime::RSS), $day['date_rss']);
423 static::assertSame(format_date($dates[0], false), $day['date_human']); 423 static::assertSame(format_date($dates[0], false), $day['date_human']);
424 static::assertSame('http://shaarli/daily?day='. $dates[0]->format('Ymd'), $day['absolute_url']); 424 static::assertSame('http://shaarli/daily?day='. $dates[0]->format('Ymd'), $day['absolute_url']);
425 static::assertCount(1, $day['links']); 425 static::assertCount(1, $day['links']);
@@ -430,7 +430,7 @@ class DailyControllerTest extends TestCase
430 $day = $assignedVariables['days'][$dates[1]->format('Ymd')]; 430 $day = $assignedVariables['days'][$dates[1]->format('Ymd')];
431 431
432 static::assertEquals($dates[1], $day['date']); 432 static::assertEquals($dates[1], $day['date']);
433 static::assertSame($dates[1]->format(\DateTimeInterface::RSS), $day['date_rss']); 433 static::assertSame($dates[1]->format(\DateTime::RSS), $day['date_rss']);
434 static::assertSame(format_date($dates[1], false), $day['date_human']); 434 static::assertSame(format_date($dates[1], false), $day['date_human']);
435 static::assertSame('http://shaarli/daily?day='. $dates[1]->format('Ymd'), $day['absolute_url']); 435 static::assertSame('http://shaarli/daily?day='. $dates[1]->format('Ymd'), $day['absolute_url']);
436 static::assertCount(2, $day['links']); 436 static::assertCount(2, $day['links']);