[HttpFoundation] Setting `REQUEST_TIME_FLOAT` when constructing a Request object

This commit is contained in:
Carlos Tasada 2021-01-31 14:27:34 +01:00
parent bf1752a550
commit c52c1e0b9b
2 changed files with 4 additions and 0 deletions

View File

@ -333,6 +333,7 @@ class Request
'SCRIPT_FILENAME' => '',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_TIME' => time(),
'REQUEST_TIME_FLOAT' => microtime(true),
], $server);
$server['PATH_INFO'] = '';

View File

@ -23,6 +23,9 @@ use Symfony\Component\HttpKernel\HttpKernel;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
/**
* @group time-sensitive
*/
class InlineFragmentRendererTest extends TestCase
{
public function testRender()