17 $request =
new Request(
'GET',
'http://foo.com');
18 $this->assertTrue($strategy->canCacheRequest($request));
24 $request =
new Request(
'GET',
'http://foo.com', array(
'cache-control' =>
'no-store'));
25 $this->assertFalse($strategy->canCacheRequest($request));
30 $response = $this->getMockBuilder(
'Guzzle\Http\Message\Response')
31 ->setMethods(array(
'canCache'))
32 ->setConstructorArgs(array(200))
34 $response->expects($this->once())
36 ->will($this->returnValue(
true));
38 $this->assertTrue($strategy->canCacheResponse($response));