Rename alias used in Predis\Client for Predis\Transaction\MultiExec.

This commit is contained in:
Daniele Alessandri
2014-06-03 18:56:48 +02:00
parent 0148743a76
commit 5a474c5a32
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -27,7 +27,7 @@ use Predis\PubSub\Consumer as PubSubConsumer;
use Predis\Response\ErrorInterface as ErrorResponseInterface;
use Predis\Response\ResponseInterface;
use Predis\Response\ServerException;
use Predis\Transaction\MultiExec as TransactionMultiExec;
use Predis\Transaction\MultiExec as MultiExecTransaction;
/**
* Client class used for connecting and executing commands on Redis.
@@ -430,7 +430,7 @@ class Client implements ClientInterface
* of a transaction executed inside the optionally provided callable object.
*
* @param mixed ... Array of options, a callable for execution, or both.
* @return TransactionMultiExec|array
* @return MultiExecTransaction|array
*/
public function transaction(/* arguments */)
{
@@ -442,11 +442,11 @@ class Client implements ClientInterface
*
* @param array $options Options for the context.
* @param mixed $callable Optional callable used to execute the context.
* @return TransactionMultiExec|array
* @return MultiExecTransaction|array
*/
protected function createTransaction(array $options = null, $callable = null)
{
$transaction = new TransactionMultiExec($this, $options);
$transaction = new MultiExecTransaction($this, $options);
if (isset($callable)) {
return $transaction->execute($callable);
+1 -1
View File
@@ -736,7 +736,7 @@ class ClientTest extends PredisTestCase
* @group disconnected
* @todo I hate this test but reflection is the easiest way in this case.
*/
public function testTransactionWithArrayReturnsTransactionMultiExecWithOptions()
public function testTransactionWithArrayReturnsMultiExecTransactionWithOptions()
{
$options = array('cas' => true, 'retry' => 3);