public testThrowsExceptionIfRetryCountNotAtLeast1 ( ) |
public function testThrowsExceptionIfRetryCountNotAtLeast1()
{
$this->expectArgumentError('Functional\\retry() expects parameter 2 to be an integer greater than or equal to 1');
retry([$this->retryer, 'retry'], 0);
}