[HttpFoundation] Setting REQUEST_TIME_FLOAT
when constructing a Request object
This commit is contained in:
parent
bf1752a550
commit
c52c1e0b9b
@ -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'] = '';
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user