Skip to content

Commit

Permalink
Fix PHP CS Fixer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmollenhour committed Oct 26, 2023
1 parent c985c8d commit 5641140
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/CredisStandaloneTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function testPersistentvsNonPersistent()
public function testStandAloneArgumentsExtra()
{
$this->assertTrue($this->credis->hMSet('hash', array('field1' => 'value1', 'field2' => 'value2'), 'field3', 'value3'));
$this->assertEquals(array('field1' => 'value1', 'field2' => 'value2', 'field3' =>'value3'), $this->credis->hMGet('hash', array('field1','field2','field3')));
$this->assertEquals(array('field1' => 'value1', 'field2' => 'value2', 'field3' => 'value3'), $this->credis->hMGet('hash', array('field1','field2','field3')));
}

public function testStandAloneMultiPipelineThrowsException()
Expand Down
8 changes: 4 additions & 4 deletions tests/CredisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -868,11 +868,11 @@ public function testForceStandAloneAfterEstablishedConnection()
}
public function testHscan()
{
$this->credis->hmset('hash', array('name' => 'Jack','age' =>33));
$this->credis->hmset('hash', array('name' => 'Jack','age' => 33));
$iterator = null;
$result = $this->credis->hscan($iterator, 'hash', 'n*', 10);
$this->assertEquals($iterator, 0);
$this->assertEquals($result, ['name'=>'Jack']);
$this->assertEquals($result, ['name' => 'Jack']);
}

public function testHscanEmptyIterator()
Expand All @@ -891,7 +891,7 @@ public function testSscan()
$iterator = null;
$result = $this->credis->sscan($iterator, 'set', 'n*', 10);
$this->assertEquals($iterator, 0);
$this->assertEquals($result, [0=>'name']);
$this->assertEquals($result, [0 => 'name']);
}

public function testSscanEmptyIterator()
Expand All @@ -910,7 +910,7 @@ public function testZscan()
$iterator = null;
$result = $this->credis->zscan($iterator, 'sortedset', 'n*', 10);
$this->assertEquals($iterator, 0);
$this->assertEquals($result, ['name'=>'0']);
$this->assertEquals($result, ['name' => '0']);
}

public function testZscanEmptyIterator()
Expand Down

0 comments on commit 5641140

Please sign in to comment.