19 $this->assertTrue($strategy->makesDecision());
20 $request = $this->getMock(
'Guzzle\Http\Message\Request', array(), array(),
'',
false);
22 $e->setError(
'foo', CURLE_BAD_CALLING_ORDER);
23 $this->assertEquals(
false, $strategy->getBackoffPeriod(0, $request,
null, $e));
26 $this->assertEquals(0, $strategy->getBackoffPeriod(0, $request,
null, $e->setError(
'foo', $code)));
33 $request = $this->getMock(
'Guzzle\Http\Message\Request', array(), array(),
'',
false);
34 $this->assertEquals(
false, $strategy->getBackoffPeriod(0, $request,
new Response(200)));