clock icon indicating copy to clipboard operation
clock copied to clipboard

Add adjustTime to FrozenClock

Open lgrossi opened this issue 1 year ago • 0 comments

Minor helper that simplifies FrozenClock usage during test setup, allowing to modify the clock based on a given modifier.

Benefit:

// instead of
$this->clock->setTo($this->clock->now()->modify('+60 seconds'))

// we can do
$this->clock->adjustTime('+60 seconds');

lgrossi avatar Jul 04 '24 09:07 lgrossi