1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20:
<?php
namespace Guzzle\Tests\Plugin\Cache;
use Guzzle\Http\Message\Request;
use Guzzle\Http\Message\Response;
use Guzzle\Plugin\Cache\SkipRevalidation;
/**
* @covers Guzzle\Plugin\Cache\SkipRevalidation
*/
class SkipRevalidationTest extends \Guzzle\Tests\GuzzleTestCase
{
public function testSkipsRequestRevalidation()
{
$skip = new SkipRevalidation();
$this->assertTrue($skip->revalidate(new Request('GET', 'http://foo.com'), new Response(200)));
}
}