Rename write and read methods of the composable connection interface.

This commit is contained in:
Daniele Alessandri
2013-12-10 21:26:11 +01:00
parent 59b5658cf5
commit 95b9f63cab
15 changed files with 35 additions and 34 deletions
@@ -28,7 +28,7 @@ class StreamableMultiBulkResponseTest extends PredisTestCase
$connection = $this->getMock('Predis\Connection\ComposableConnectionInterface');
$connection->expects($this->never())->method('readLine');
$connection->expects($this->never())->method('readBytes');
$connection->expects($this->never())->method('readBuffer');
$this->assertInstanceOf('Predis\Response\Iterator\MultiBulk', $handler->handle($connection, '1'));
}
@@ -45,7 +45,7 @@ class StreamableMultiBulkResponseTest extends PredisTestCase
$connection = $this->getMock('Predis\Connection\ComposableConnectionInterface');
$connection->expects($this->never())->method('readLine');
$connection->expects($this->never())->method('readBytes');
$connection->expects($this->never())->method('readBuffer');
$handler->handle($connection, 'invalid');
}