public function testRetriedIfItFails()
{
$this->retryer->expects($this->at(0))->method('retry')->with(0, 0)->willThrowException(new Exception());
$this->retryer->expects($this->at(1))->method('retry')->with(1, 0)->willReturn('value');
$this->assertSame('value', retry([$this->retryer, 'retry'], 10));
}