File manager - Edit - /home/jardides/www/Cloud/3rdparty/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/ConstantBackoffStrategyTest.php
Back
<?php namespace Guzzle\Tests\Plugin\Backoff; use Guzzle\Plugin\Backoff\ConstantBackoffStrategy; /** * @covers Guzzle\Plugin\Backoff\ConstantBackoffStrategy */ class ConstantBackoffStrategyTest extends \Guzzle\Tests\GuzzleTestCase { public function testRetriesWithConstantDelay() { $strategy = new ConstantBackoffStrategy(3.5); $this->assertFalse($strategy->makesDecision()); $request = $this->getMock('Guzzle\Http\Message\Request', array(), array(), '', false); $this->assertEquals(3.5, $strategy->getBackoffPeriod(0, $request)); $this->assertEquals(3.5, $strategy->getBackoffPeriod(1, $request)); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings