1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21:
<?php
namespace Guzzle\Tests\Common\Cache;
use Guzzle\Cache\NullCacheAdapter;
/**
* @covers Guzzle\Cache\NullCacheAdapter
*/
class NullCacheAdapterTest extends \Guzzle\Tests\GuzzleTestCase
{
public function testNullCacheAdapter()
{
$c = new NullCacheAdapter();
$this->assertEquals(false, $c->contains('foo'));
$this->assertEquals(true, $c->delete('foo'));
$this->assertEquals(false, $c->fetch('foo'));
$this->assertEquals(true, $c->save('foo', 'bar'));
}
}