Lines Matching refs:time_factory
86 $time_factory = $this->createMock(TimeFactoryInterface::class);
87 $time_factory->method('now')->willReturn($now + 60.0);
88 Registry::timeFactory($time_factory);
104 $time_factory = $this->createMock(TimeFactoryInterface::class);
105 $time_factory->method('now')->willReturn($now + 10.0);
106 Registry::timeFactory($time_factory);
117 $time_factory = $this->createMock(TimeFactoryInterface::class);
118 $time_factory->method('now')->willReturn($now + 1.4);
119 Registry::timeFactory($time_factory);
130 $time_factory = $this->createMock(TimeFactoryInterface::class);
131 $time_factory->method('now')->willReturn($now + 1.6);
132 Registry::timeFactory($time_factory);