diff --git a/tests/CredisStandaloneTest.php b/tests/CredisStandaloneTest.php index 4bad9a9..ea1ea35 100644 --- a/tests/CredisStandaloneTest.php +++ b/tests/CredisStandaloneTest.php @@ -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() diff --git a/tests/CredisTest.php b/tests/CredisTest.php index 7e81dc4..a9f4dac 100644 --- a/tests/CredisTest.php +++ b/tests/CredisTest.php @@ -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() @@ -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() @@ -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()