summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/memcache/cache.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/memcache/cache.php b/tests/lib/memcache/cache.php
index 8a4a708e4b7..e5ceae52fb0 100644
--- a/tests/lib/memcache/cache.php
+++ b/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');