NullClock
Playwright\Clock\NullClock
Provides a no-op clock. Clock operations are accepted without sending protocol commands to a browser. Use it where the clock contract is required but no browser context exists.
implements ClockInterface
Methods
fastForward()
voidfunction fastForward(int|string $ticks): void
install()
voidfunction install(array $options = []): void
pauseAt()
voidfunction pauseAt(\DateTimeInterface|int|string $time): void
resume()
voidfunction resume(): void
runFor()
voidfunction runFor(int|string $ticks): void
setFixedTime()
voidfunction setFixedTime(\DateTimeInterface|int|string $time): void
setSystemTime()
voidfunction setSystemTime(\DateTimeInterface|int|string $time): void