Skip to content

Commit 114ebdb

Browse files
committed
test-large-string
1 parent aa8ed65 commit 114ebdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Integration/Version2x6/CommonTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ public function test_executeRaw() {
5656
public function test_bigData() {
5757
$Redis = static::$Redis;
5858

59-
$string = str_repeat(microtime(true), 1024 * 1024);
59+
$string = str_repeat(sha1(microtime(true)), 1024 * 1024);
6060
$md5 = md5($string);
61+
$this->assertSame(1024 * 1024 * 40, strlen($string));
6162

6263
$this->assertSame(true, $Redis->set('foo', $string));
6364
$this->assertSame($string, $Redis->get('foo'));

0 commit comments

Comments
 (0)