Skip to content
Snippets Groups Projects
Commit 7eb84040 authored by Joas Schilling's avatar Joas Schilling
Browse files

Add a test case for memcaches to store an array

parent 2fe65135
Branches
No related tags found
Loading
...@@ -22,6 +22,12 @@ abstract class Cache extends \Test_Cache { ...@@ -22,6 +22,12 @@ abstract class Cache extends \Test_Cache {
$this->assertEquals('bar', $this->instance->get('foo')); $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() { public function testDoesNotExistAfterRemove() {
$this->instance->set('foo', 'bar'); $this->instance->set('foo', 'bar');
$this->instance->remove('foo'); $this->instance->remove('foo');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment