Пример #1
0
 public function test_flush_group()
 {
     if (!is_a($this->memcache, 'AkCache')) {
         $this->fail('Caching is not enabled. Please enable caching for the unit test');
         return;
     }
     $retrieved = $this->memcache->get('test_id_10', 'strings');
     $this->assertTrue($retrieved != null);
     $this->memcache->clean('strings');
     $retrieved = $this->memcache->get('test_id_10', 'strings');
     $this->assertTrue($retrieved == null);
     $retrieved = $this->memcache->get('test_id_9', 'strings');
     $this->assertTrue($retrieved == null);
     $retrieved = $this->memcache->get('test_id_8', 'strings');
     $this->assertTrue($retrieved == null);
     $retrieved = $this->memcache->get('test_id_2', 'integers');
     $this->assertTrue($retrieved != null);
 }