mirror of
https://github.com/predis/predis.git
synced 2026-10-08 21:06:44 +00:00
[tests] Change indentation of mock method expectations.
This commit is contained in:
@@ -26,14 +26,14 @@ class RequestSerializerTest extends PredisTestCase
|
||||
$serializer = new RequestSerializer();
|
||||
|
||||
$command = $this->getMock('Predis\Command\CommandInterface');
|
||||
|
||||
$command->expects($this->once())
|
||||
->method('getId')
|
||||
->will($this->returnValue('PING'));
|
||||
|
||||
$command->expects($this->once())
|
||||
->method('getArguments')
|
||||
->will($this->returnValue(array()));
|
||||
$command
|
||||
->expects($this->once())
|
||||
->method('getId')
|
||||
->will($this->returnValue('PING'));
|
||||
$command
|
||||
->expects($this->once())
|
||||
->method('getArguments')
|
||||
->will($this->returnValue(array()));
|
||||
|
||||
$result = $serializer->serialize($command);
|
||||
|
||||
@@ -48,14 +48,14 @@ class RequestSerializerTest extends PredisTestCase
|
||||
$serializer = new RequestSerializer();
|
||||
|
||||
$command = $this->getMock('Predis\Command\CommandInterface');
|
||||
|
||||
$command->expects($this->once())
|
||||
->method('getId')
|
||||
->will($this->returnValue('SET'));
|
||||
|
||||
$command->expects($this->once())
|
||||
->method('getArguments')
|
||||
->will($this->returnValue(array('key', 'value')));
|
||||
$command
|
||||
->expects($this->once())
|
||||
->method('getId')
|
||||
->will($this->returnValue('SET'));
|
||||
$command
|
||||
->expects($this->once())
|
||||
->method('getArguments')
|
||||
->will($this->returnValue(array('key', 'value')));
|
||||
|
||||
$result = $serializer->serialize($command);
|
||||
|
||||
@@ -70,14 +70,14 @@ class RequestSerializerTest extends PredisTestCase
|
||||
$serializer = new RequestSerializer();
|
||||
|
||||
$command = $this->getMock('Predis\Command\CommandInterface');
|
||||
|
||||
$command->expects($this->once())
|
||||
->method('getId')
|
||||
->will($this->returnValue('DEL'));
|
||||
|
||||
$command->expects($this->once())
|
||||
->method('getArguments')
|
||||
->will($this->returnValue(array(0 => 'key:1', 2 => 'key:2')));
|
||||
$command
|
||||
->expects($this->once())
|
||||
->method('getId')
|
||||
->will($this->returnValue('DEL'));
|
||||
$command
|
||||
->expects($this->once())
|
||||
->method('getArguments')
|
||||
->will($this->returnValue(array(0 => 'key:1', 2 => 'key:2')));
|
||||
|
||||
$result = $serializer->serialize($command);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user