function it_stops_execution_if_time_out_value_is_exceeded(Waiter $waitStrategy) { $this->wait(5); $this->shouldThrow(TimedOutExceeded::class)->duringWait(5); $waitStrategy->wait(5)->shouldHaveBeenCalled(); }