From 6d5cfe0c66f7010d552f0aa234a13c2e91a933bd Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Wed, 23 Jun 2021 15:30:43 +0200 Subject: Move DateTime::RFC2822 to DateTimeInterface::2822 Signed-off-by: Christoph Wurst --- tests/lib/AppFramework/Middleware/NotModifiedMiddlewareTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/lib/AppFramework/Middleware/NotModifiedMiddlewareTest.php b/tests/lib/AppFramework/Middleware/NotModifiedMiddlewareTest.php index 3cd3921ce45..c62384302fb 100644 --- a/tests/lib/AppFramework/Middleware/NotModifiedMiddlewareTest.php +++ b/tests/lib/AppFramework/Middleware/NotModifiedMiddlewareTest.php @@ -61,13 +61,13 @@ class NotModifiedMiddlewareTest extends \Test\TestCase { [null, '"etag"', null, '', false], ['etag', '"etag"', null, '', true], - [null, '', $now, $now->format(\DateTime::RFC2822), true], + [null, '', $now, $now->format(\DateTimeInterface::RFC2822), true], [null, '', $now, $now->format(\DateTimeInterface::ATOM), false], - [null, '', null, $now->format(\DateTime::RFC2822), false], + [null, '', null, $now->format(\DateTimeInterface::RFC2822), false], [null, '', $now, '', false], ['etag', '"etag"', $now, $now->format(\DateTimeInterface::ATOM), true], - ['etag', '"etag"', $now, $now->format(\DateTime::RFC2822), true], + ['etag', '"etag"', $now, $now->format(\DateTimeInterface::RFC2822), true], ]; } -- cgit v1.2.3