public function testReturnsRequestCanCache()
 {
     $strategy = new DefaultCanCacheStrategy();
     $response = $this->getMockBuilder('Guzzle\\Http\\Message\\Request')->disableOriginalConstructor()->setMethods(array('canCache'))->getMock();
     $response->expects($this->once())->method('canCache')->will($this->returnValue(true));
     $this->assertTrue($strategy->canCache($response));
 }
 public function canCacheRequest(RequestInterface $request)
 {
     return $this->requestCallback ? call_user_func($this->requestCallback, $request) : parent::canCache($request);
 }