Add a test case for memcaches to store an array

remotes/origin/create-share-target-reuse
Joas Schilling 10 years ago
parent 2fe6513557
commit 7eb8404040
  1. 6
      tests/lib/memcache/cache.php

@ -22,6 +22,12 @@ abstract class Cache extends \Test_Cache {
$this->assertEquals('bar', $this->instance->get('foo'));
}
public function testGetArrayAfterSet() {
$this->assertNull($this->instance->get('foo'));
$this->instance->set('foo', ['bar']);
$this->assertEquals(['bar'], $this->instance->get('foo'));
}
public function testDoesNotExistAfterRemove() {
$this->instance->set('foo', 'bar');
$this->instance->remove('foo');

Loading…
Cancel
Save