[tests] Change indentation of mock method expectations.

This commit is contained in:
Daniele Alessandri
2016-06-09 17:26:49 +02:00
parent f02f3b6d37
commit eb1e686ff9
49 changed files with 3288 additions and 2382 deletions
@@ -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);