Пример #1
0
 protected function tearDown()
 {
     foreach ($this->cachebackends as $bin => $cachebackend) {
         $this->cachebackends[$bin]->removeBin();
     }
     parent::tearDown();
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function testSetGet()
 {
     parent::testSetGet();
     $backend = $this->getCacheBackend();
     // Set up a cache ID that is not ASCII and longer than 255 characters so we
     // can test cache ID normalization.
     $cid_long = str_repeat('愛€', 500);
     $cached_value_long = $this->randomMachineName();
     $backend->set($cid_long, $cached_value_long);
     $this->assertIdentical($cached_value_long, $backend->get($cid_long)->data, "Backend contains the correct value for long, non-ASCII cache id.");
     $cid_short = '愛1€';
     $cached_value_short = $this->randomMachineName();
     $backend->set($cid_short, $cached_value_short);
     $this->assertIdentical($cached_value_short, $backend->get($cid_short)->data, "Backend contains the correct value for short, non-ASCII cache id.");
 }
 /**
  * {@inheritdoc}
  */
 public function testRemoveBin()
 {
     if ($this->requirementsFail()) {
         return;
     }
     parent::testRemoveBin();
 }
Пример #4
0
 public function tearDown()
 {
     $this->backend->removeBin();
     parent::tearDown();
     $this->backend = NULL;
 }