function it_sets_the_request_attribute_from_the_current_time(GetResponseEvent $event, ParameterBagInterface $attributesParameterBag) { $request = new Request([], [], [], [], [], []); $request->attributes = $attributesParameterBag->getWrappedObject(); $event->getRequest()->willReturn($request); $attributesParameterBag->set('_tolerance_request_time', Argument::type('float'))->shouldBeCalled(); $this->onRequest($event); }