Add a test case for memcaches to store an array

This commit is contained in:
Joas Schilling 2015-01-20 10:51:04 +01:00
parent 2fe6513557
commit 7eb8404040
1 changed files with 6 additions and 0 deletions

View File

@ -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');