Exemplo n.º 1
0
 public function testSaveDeleteContains()
 {
     $this->assertFalse($this->cache->contains('foo'));
     $this->cache->save('foo', 'bar');
     $this->assertTrue($this->cache->contains('foo'));
     $this->assertEquals($this->cache->fetch('foo'), 'bar');
     $this->cache->delete('foo');
     $this->assertFalse($this->cache->contains('foo'));
 }