spec\Tolerance\Bridge\Symfony\Metrics\EventListener\KernelRequest\RecordRequestStartTimeSpec::it_sets_the_request_attribute_from_the_request_time_float PHP Метод

it_sets_the_request_attribute_from_the_request_time_float() публичный Метод

public it_sets_the_request_attribute_from_the_request_time_float ( GetResponseEvent $event, Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface $attributesParameterBag )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent
$attributesParameterBag Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface
    function it_sets_the_request_attribute_from_the_request_time_float(GetResponseEvent $event, ParameterBagInterface $attributesParameterBag)
    {
        $request = new Request([], [], [], [], [], ['REQUEST_TIME_FLOAT' => '123456.789']);
        $request->attributes = $attributesParameterBag->getWrappedObject();
        $event->getRequest()->willReturn($request);
        $attributesParameterBag->set('_tolerance_request_time', 123456.789)->shouldBeCalled();
        $this->onRequest($event);
    }