Rename classes in Predis\Response and Predis\Response\Iterator.

This change aims to make class names shorter with less redundant fully
qualified names.

Merge!
This commit is contained in:
Daniele Alessandri
2013-11-16 13:02:35 +01:00
parent 1022be6010
commit b71c798f9b
43 changed files with 150 additions and 166 deletions
@@ -15,9 +15,7 @@ use \PHPUnit_Framework_TestCase as StandardTestCase;
use SplQueue;
use Predis\Profile\ServerProfile;
use Predis\Response\ResponseError;
use Predis\Response\ResponseObjectInterface;
use Predis\Response\ResponseQueued;
use Predis\Response;
/**
*
@@ -31,7 +29,7 @@ class MultiExecExecutorTest extends StandardTestCase
{
$executor = new MultiExecExecutor();
$pipeline = $this->getCommandsQueue();
$queued = new ResponseQueued();
$queued = new Response\StatusQueued();
$connection = $this->getMock('Predis\Connection\SingleConnectionInterface');
$connection->expects($this->exactly(2))
@@ -76,8 +74,8 @@ class MultiExecExecutorTest extends StandardTestCase
{
$executor = new MultiExecExecutor();
$pipeline = $this->getCommandsQueue();
$queued = new ResponseQueued();
$error = new ResponseError('ERR Test error');
$queued = new Response\StatusQueued();
$error = new Response\Error('ERR Test error');
$connection = $this->getMock('Predis\Connection\SingleConnectionInterface');
$connection->expects($this->at(0))
@@ -100,8 +98,8 @@ class MultiExecExecutorTest extends StandardTestCase
{
$executor = new MultiExecExecutor();
$pipeline = $this->getCommandsQueue();
$queued = new ResponseQueued();
$error = new ResponseError('ERR Test error');
$queued = new Response\StatusQueued();
$error = new Response\Error('ERR Test error');
$connection = $this->getMock('Predis\Connection\SingleConnectionInterface');
$connection->expects($this->exactly(3))