We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca76a09 + 1624e73 commit 14e9736Copy full SHA for 14e9736
tests/system/HTTP/ResponseTest.php
@@ -243,9 +243,10 @@ public function testSetLastModifiedWithDateTimeObject()
243
{
244
$response = new Response(new App());
245
246
- $response->setLastModified(DateTime::createFromFormat('Y-m-d', '2000-03-10'));
+ $datetime = DateTime::createFromFormat('Y-m-d', '2000-03-10');
247
+ $response->setLastModified($datetime);
248
- $date = DateTime::createFromFormat('Y-m-d', '2000-03-10');
249
+ $date = clone $datetime;
250
$date->setTimezone(new DateTimeZone('UTC'));
251
252
$header = $response->getHeaderLine('Last-Modified');
0 commit comments