Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cc1be32

Browse filesBrowse files
committed
fix 2 tests with redis 6.2
1 parent 0bae4bb commit cc1be32
Copy full SHA for cc1be32

1 file changed

+2-2Lines changed: 2 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tests/RedisTest.php‎

Copy file name to clipboardExpand all lines: tests/RedisTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public function testBitcount() {
245245
$this->redis->set('bitcountkey', hex2bin('10eb8939e68bfdb640260f0629f3'));
246246
$this->assertEquals(1, $this->redis->bitcount('bitcountkey', 8, 8, false));
247247

248-
if ( ! $this->is_keydb) {
248+
if ( ! $this->is_keydb && $this->minVersionCheck('7.0')) {
249249
/* key, start, end, BIT */
250250
$this->redis->set('bitcountkey', hex2bin('cd0e4c80f9e4590d888a10'));
251251
$this->assertEquals(5, $this->redis->bitcount('bitcountkey', 0, 9, true));
@@ -7625,7 +7625,7 @@ public function testCommand() {
76257625
$this->assertIsArray($commands);
76267626
$this->assertEquals(count($commands), $this->redis->command('count'));
76277627

7628-
if ( ! $this->is_keydb) {
7628+
if ( ! $this->is_keydb && $this->minVersionCheck('7.0')) {
76297629
$infos = $this->redis->command('info');
76307630
$this->assertIsArray($infos);
76317631
$this->assertEquals(count($infos), count($commands));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.