18 $this->assertTrue($strategy->makesDecision());
19 $request = $this->getMock(
'Guzzle\Http\Message\Request', array(), array(),
'',
false);
22 $this->assertEquals(
false, $strategy->getBackoffPeriod(0, $request, $response));
23 $response->setStatus(400);
24 $this->assertEquals(
false, $strategy->getBackoffPeriod(0, $request, $response));
27 $this->assertEquals(0, $strategy->getBackoffPeriod(0, $request, $response->setStatus($code)));
34 $request = $this->getMock(
'Guzzle\Http\Message\Request', array(), array(),
'',
false);
36 $this->assertEquals(0, $strategy->getBackoffPeriod(0, $request, $response));
37 $response->setStatus(500);
38 $this->assertEquals(
false, $strategy->getBackoffPeriod(0, $request, $response));
44 $request = $this->getMock(
'Guzzle\Http\Message\Request', array(), array(),
'',
false);
45 $this->assertEquals(
false, $strategy->getBackoffPeriod(0, $request));