mirror of
https://github.com/predis/predis.git
synced 2026-10-10 22:07:31 +00:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user