public function testEvictAll()
 {
     $key1 = new CacheKeyMock('key.1');
     $key2 = new CacheKeyMock('key.2');
     $this->assertFalse($this->region->contains($key1));
     $this->assertFalse($this->region->contains($key2));
     $this->region->put($key1, new CacheEntryMock(array('value' => 'foo')));
     $this->region->put($key2, new CacheEntryMock(array('value' => 'bar')));
     $this->assertTrue($this->region->contains($key1));
     $this->assertTrue($this->region->contains($key2));
     $this->region->evictAll();
     $this->assertFalse($this->region->contains($key1));
     $this->assertFalse($this->region->contains($key2));
 }
 /**
  * {@inheritdoc}
  */
 public function clear()
 {
     return $this->region->evictAll();
 }
 /**
  * {@inheritdoc}
  */
 public function evictAll()
 {
     $this->calls[__FUNCTION__][] = array();
     $this->throwException(__FUNCTION__);
     return $this->region->evictAll();
 }