Functional\Tests\RetryTest::testDelayerSmallerThanRetries PHP Method

testDelayerSmallerThanRetries() public method

    public function testDelayerSmallerThanRetries()
    {
        $this->retryer->expects($this->at(0))->method('retry')->with(0, 10)->willThrowException(new Exception('first'));
        $this->retryer->expects($this->at(1))->method('retry')->with(1, 20)->willThrowException(new Exception('second'));
        $this->retryer->expects($this->at(2))->method('retry')->with(2, 10)->willThrowException(new Exception('third'));
        $this->retryer->expects($this->at(3))->method('retry')->with(3, 20)->willThrowException(new Exception('four'));
        $this->setExpectedException('Exception', 'four');
        retry([$this->retryer, 'retry'], 4, new ArrayIterator([1 => 10, 2 => 20]));
    }