public function testSuccessWithNoRetries()
{
$actualAttempts = 0;
$backoff = new ExponentialBackoff();
$backoff->setDelayFunction($this->delayFunction);
$backoff->execute(function () use(&$actualAttempts) {
$actualAttempts++;
return;
});
$this->assertEquals(1, $actualAttempts);
}