Add a test case for memcaches to store an array
This commit is contained in:
parent
2fe6513557
commit
7eb8404040
|
@ -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…
Reference in New Issue