summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJeremy2014-12-06 09:18:26 (GMT)
committerJeremy Andrews2014-12-06 09:18:26 (GMT)
commit2245e778ecd0b98155e2cb0a5be28ec1a02088a4 (patch)
treef8db4e1518a8c78dd850a08cf6065e8d59be7d5d /tests
parenta2e9e3865295fdf351ce1ea8bf50b10dced56407 (diff)
Issue #435694 by Jeremy, catch, Fabianx, markpavlitski, Elijah Lynn, glennpratt, pdrake, achton, arantxag, wwhurley: >1M data writes incompatible with memcached
Diffstat (limited to 'tests')
-rw-r--r--tests/memcache.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/memcache.test b/tests/memcache.test
index 5e2202c..ee65bd1 100644
--- a/tests/memcache.test
+++ b/tests/memcache.test
@@ -339,6 +339,20 @@ class MemCacheSavingCase extends MemcacheTestCase {
}
/**
+ * Test saving and restoring a very large value (>1MiB).
+ */
+ function testLargeValue() {
+ $this->checkVariable(array_fill(0, 500000, rand()));
+ }
+
+ /**
+ * Test save and restoring a string with a long key and a very large value.
+ */
+ function testLongKeyLargeValue() {
+ $this->checkVariable(array_fill(0, 500000, rand()), $this->randomName(300));
+ }
+
+ /**
* Check or a variable is stored and restored properly.
*/
public function checkVariable($var, $key = 'test_var') {