Merge pull request #6683 from fpoy/FEAT_Test_ResponseTest_setLastModified

This commit is contained in:
MGatner 2022-10-15 06:49:17 -04:00 committed by GitHub
commit 14e973641d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -243,9 +243,10 @@ final class ResponseTest extends CIUnitTestCase
{
$response = new Response(new App());
$response->setLastModified(DateTime::createFromFormat('Y-m-d', '2000-03-10'));
$datetime = DateTime::createFromFormat('Y-m-d', '2000-03-10');
$response->setLastModified($datetime);
$date = DateTime::createFromFormat('Y-m-d', '2000-03-10');
$date = clone $datetime;
$date->setTimezone(new DateTimeZone('UTC'));
$header = $response->getHeaderLine('Last-Modified');