[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
@@ -23,12 +23,15 @@ class StreamableMultiBulkResponseTest extends PredisTestCase
*/
public function testOk()
{
$handler = new Handler\StreamableMultiBulkResponse();
$connection = $this->getMock('Predis\Connection\CompositeConnectionInterface');
$connection
->expects($this->never())
->method('readLine');
$connection
->expects($this->never())
->method('readBuffer');
$connection->expects($this->never())->method('readLine');
$connection->expects($this->never())->method('readBuffer');
$handler = new Handler\StreamableMultiBulkResponse();
$this->assertInstanceOf('Predis\Response\Iterator\MultiBulk', $handler->handle($connection, '1'));
}
@@ -40,12 +43,15 @@ class StreamableMultiBulkResponseTest extends PredisTestCase
*/
public function testInvalid()
{
$handler = new Handler\StreamableMultiBulkResponse();
$connection = $this->getMockConnectionOfType('Predis\Connection\CompositeConnectionInterface', 'tcp://127.0.0.1:6379');
$connection
->expects($this->never())
->method('readLine');
$connection
->expects($this->never())
->method('readBuffer');
$connection->expects($this->never())->method('readLine');
$connection->expects($this->never())->method('readBuffer');
$handler = new Handler\StreamableMultiBulkResponse();
$handler->handle($connection, 'invalid');
}