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()

void
function fastForward(int|string $ticks): void

install()

void
function install(array $options = []): void

pauseAt()

void
function pauseAt(\DateTimeInterface|int|string $time): void

resume()

void
function resume(): void

runFor()

void
function runFor(int|string $ticks): void

setFixedTime()

void
function setFixedTime(\DateTimeInterface|int|string $time): void

setSystemTime()

void
function setSystemTime(\DateTimeInterface|int|string $time): void