Prechádzať zdrojové kódy

Create the Predis\Response namespace.

All of the response interface, classes and exceptions have been moved
into this namespace.
Daniele Alessandri 11 rokov pred
rodič
commit
a8edc02eb6
100 zmenil súbory, kde vykonal 153 pridanie a 145 odobranie
  1. 3 0
      lib/Predis/Client.php
  2. 2 2
      lib/Predis/Connection/PhpiredisConnection.php
  3. 2 2
      lib/Predis/Connection/PhpiredisStreamConnection.php
  4. 1 1
      lib/Predis/Connection/RedisCluster.php
  5. 3 2
      lib/Predis/Connection/StreamConnection.php
  6. 1 1
      lib/Predis/Connection/WebdisConnection.php
  7. 1 1
      lib/Predis/Iterator/MultiBulkResponse.php
  8. 3 3
      lib/Predis/Pipeline/MultiExecExecutor.php
  9. 3 3
      lib/Predis/Pipeline/StandardExecutor.php
  10. 1 1
      lib/Predis/Protocol/Text/Handler/ErrorResponse.php
  11. 1 1
      lib/Predis/Protocol/Text/Handler/StatusResponse.php
  12. 2 2
      lib/Predis/Protocol/Text/ProtocolProcessor.php
  13. 1 1
      lib/Predis/Response/ResponseError.php
  14. 1 1
      lib/Predis/Response/ResponseErrorInterface.php
  15. 1 1
      lib/Predis/Response/ResponseObjectInterface.php
  16. 1 1
      lib/Predis/Response/ResponseQueued.php
  17. 3 1
      lib/Predis/Response/ServerException.php
  18. 3 3
      lib/Predis/Transaction/MultiExecContext.php
  19. 2 2
      tests/PHPUnit/ConnectionTestCase.php
  20. 4 2
      tests/Predis/ClientTest.php
  21. 1 1
      tests/Predis/Command/ConnectionSelectTest.php
  22. 1 1
      tests/Predis/Command/HashDeleteTest.php
  23. 1 1
      tests/Predis/Command/HashExistsTest.php
  24. 1 1
      tests/Predis/Command/HashGetAllTest.php
  25. 1 1
      tests/Predis/Command/HashGetMultipleTest.php
  26. 1 1
      tests/Predis/Command/HashGetTest.php
  27. 2 2
      tests/Predis/Command/HashIncrementByFloatTest.php
  28. 2 2
      tests/Predis/Command/HashIncrementByTest.php
  29. 1 1
      tests/Predis/Command/HashKeysTest.php
  30. 1 1
      tests/Predis/Command/HashLengthTest.php
  31. 1 1
      tests/Predis/Command/HashSetMultipleTest.php
  32. 1 1
      tests/Predis/Command/HashSetPreserveTest.php
  33. 1 1
      tests/Predis/Command/HashSetTest.php
  34. 1 1
      tests/Predis/Command/HashValuesTest.php
  35. 1 1
      tests/Predis/Command/KeyMoveTest.php
  36. 1 1
      tests/Predis/Command/KeyRenamePreserveTest.php
  37. 1 1
      tests/Predis/Command/KeyRenameTest.php
  38. 1 1
      tests/Predis/Command/KeySortTest.php
  39. 1 1
      tests/Predis/Command/ListIndexTest.php
  40. 1 1
      tests/Predis/Command/ListInsertTest.php
  41. 1 1
      tests/Predis/Command/ListLengthTest.php
  42. 1 1
      tests/Predis/Command/ListPopFirstTest.php
  43. 2 2
      tests/Predis/Command/ListPopLastPushHeadTest.php
  44. 1 1
      tests/Predis/Command/ListPopLastTest.php
  45. 1 1
      tests/Predis/Command/ListPushHeadTest.php
  46. 1 1
      tests/Predis/Command/ListPushHeadXTest.php
  47. 1 1
      tests/Predis/Command/ListPushTailTest.php
  48. 1 1
      tests/Predis/Command/ListPushTailXTest.php
  49. 1 1
      tests/Predis/Command/ListRangeTest.php
  50. 1 1
      tests/Predis/Command/ListRemoveTest.php
  51. 2 2
      tests/Predis/Command/ListSetTest.php
  52. 1 1
      tests/Predis/Command/ListTrimTest.php
  53. 1 1
      tests/Predis/Command/PubSubSubscribeByPatternTest.php
  54. 1 1
      tests/Predis/Command/PubSubSubscribeTest.php
  55. 3 3
      tests/Predis/Command/ServerClientTest.php
  56. 2 2
      tests/Predis/Command/ServerConfigTest.php
  57. 2 2
      tests/Predis/Command/ServerEvalSHATest.php
  58. 2 2
      tests/Predis/Command/ServerEvalTest.php
  59. 1 1
      tests/Predis/Command/ServerObjectTest.php
  60. 1 1
      tests/Predis/Command/ServerScriptTest.php
  61. 1 1
      tests/Predis/Command/ServerSlowlogTest.php
  62. 1 1
      tests/Predis/Command/SetAddTest.php
  63. 1 1
      tests/Predis/Command/SetCardinalityTest.php
  64. 1 1
      tests/Predis/Command/SetDifferenceStoreTest.php
  65. 1 1
      tests/Predis/Command/SetDifferenceTest.php
  66. 1 1
      tests/Predis/Command/SetIntersectionStoreTest.php
  67. 1 1
      tests/Predis/Command/SetIntersectionTest.php
  68. 1 1
      tests/Predis/Command/SetIsMemberTest.php
  69. 1 1
      tests/Predis/Command/SetMembersTest.php
  70. 2 2
      tests/Predis/Command/SetMoveTest.php
  71. 1 1
      tests/Predis/Command/SetPopTest.php
  72. 1 1
      tests/Predis/Command/SetRandomMemberTest.php
  73. 1 1
      tests/Predis/Command/SetRemoveTest.php
  74. 1 1
      tests/Predis/Command/SetUnionStoreTest.php
  75. 1 1
      tests/Predis/Command/SetUnionTest.php
  76. 1 1
      tests/Predis/Command/StringAppendTest.php
  77. 1 1
      tests/Predis/Command/StringBitCountTest.php
  78. 3 3
      tests/Predis/Command/StringBitOpTest.php
  79. 3 3
      tests/Predis/Command/StringDecrementByTest.php
  80. 2 2
      tests/Predis/Command/StringDecrementTest.php
  81. 3 3
      tests/Predis/Command/StringGetBitTest.php
  82. 1 1
      tests/Predis/Command/StringGetRangeTest.php
  83. 1 1
      tests/Predis/Command/StringGetSetTest.php
  84. 1 1
      tests/Predis/Command/StringGetTest.php
  85. 3 3
      tests/Predis/Command/StringIncrementByFloatTest.php
  86. 3 3
      tests/Predis/Command/StringIncrementByTest.php
  87. 1 1
      tests/Predis/Command/StringIncrementTest.php
  88. 3 3
      tests/Predis/Command/StringPreciseSetExpireTest.php
  89. 4 4
      tests/Predis/Command/StringSetBitTest.php
  90. 3 3
      tests/Predis/Command/StringSetExpireTest.php
  91. 2 2
      tests/Predis/Command/StringSetRangeTest.php
  92. 1 1
      tests/Predis/Command/StringStrlenTest.php
  93. 2 2
      tests/Predis/Command/TransactionDiscardTest.php
  94. 1 1
      tests/Predis/Command/TransactionExecTest.php
  95. 3 3
      tests/Predis/Command/TransactionMultiTest.php
  96. 1 1
      tests/Predis/Command/TransactionUnwatchTest.php
  97. 3 3
      tests/Predis/Command/TransactionWatchTest.php
  98. 1 1
      tests/Predis/Command/ZSetAddTest.php
  99. 1 1
      tests/Predis/Command/ZSetCardinalityTest.php
  100. 1 1
      tests/Predis/Command/ZSetCountTest.php

+ 3 - 0
lib/Predis/Client.php

@@ -24,6 +24,9 @@ use Predis\Monitor\MonitorContext;
 use Predis\Pipeline\PipelineContext;
 use Predis\Profile\ServerProfile;
 use Predis\PubSub\PubSubContext;
+use Predis\Response\ResponseErrorInterface;
+use Predis\Response\ResponseObjectInterface;
+use Predis\Response\ServerException;
 use Predis\Transaction\MultiExecContext;
 
 /**

+ 2 - 2
lib/Predis/Connection/PhpiredisConnection.php

@@ -12,9 +12,9 @@
 namespace Predis\Connection;
 
 use Predis\NotSupportedException;
-use Predis\ResponseError;
-use Predis\ResponseQueued;
 use Predis\Command\CommandInterface;
+use Predis\Response\ResponseError;
+use Predis\Response\ResponseQueued;
 
 /**
  * This class provides the implementation of a Predis connection that uses the

+ 2 - 2
lib/Predis/Connection/PhpiredisStreamConnection.php

@@ -12,9 +12,9 @@
 namespace Predis\Connection;
 
 use Predis\NotSupportedException;
-use Predis\ResponseError;
-use Predis\ResponseQueued;
 use Predis\Command\CommandInterface;
+use Predis\Response\ResponseError;
+use Predis\Response\ResponseQueued;
 
 /**
  * This class provides the implementation of a Predis connection that uses PHP's

+ 1 - 1
lib/Predis/Connection/RedisCluster.php

@@ -14,9 +14,9 @@ namespace Predis\Connection;
 use Predis\ClientException;
 use Predis\Cluster\CommandHashStrategyInterface;
 use Predis\NotSupportedException;
-use Predis\ResponseErrorInterface;
 use Predis\Cluster\RedisClusterHashStrategy;
 use Predis\Command\CommandInterface;
+use Predis\Response\ResponseErrorInterface;
 
 /**
  * Abstraction for Redis cluster (Redis v3.0).

+ 3 - 2
lib/Predis/Connection/StreamConnection.php

@@ -11,9 +11,10 @@
 
 namespace Predis\Connection;
 
-use Predis\ResponseError;
-use Predis\ResponseQueued;
 use Predis\Command\CommandInterface;
+use Predis\Response\ResponseError;
+use Predis\Response\ResponseQueued;
+
 /**
  * Standard connection to Redis servers implemented on top of PHP's streams.
  * The connection parameters supported by this class are:

+ 1 - 1
lib/Predis/Connection/WebdisConnection.php

@@ -12,10 +12,10 @@
 namespace Predis\Connection;
 
 use Predis\NotSupportedException;
-use Predis\ResponseError;
 use Predis\Command\CommandInterface;
 use Predis\Connection\ConnectionException;
 use Predis\Protocol\ProtocolException;
+use Predis\Response\ResponseError;
 
 /**
  * This class implements a Predis connection that actually talks with Webdis

+ 1 - 1
lib/Predis/Iterator/MultiBulkResponse.php

@@ -13,7 +13,7 @@ namespace Predis\Iterator;
 
 use Iterator;
 use Countable;
-use Predis\ResponseObjectInterface;
+use Predis\Response\ResponseObjectInterface;
 
 /**
  * Iterator that abstracts the access to multibulk responses allowing them to be

+ 3 - 3
lib/Predis/Pipeline/MultiExecExecutor.php

@@ -13,13 +13,13 @@ namespace Predis\Pipeline;
 
 use SplQueue;
 use Predis\ClientException;
-use Predis\ResponseErrorInterface;
-use Predis\ResponseObjectInterface;
-use Predis\ServerException;
 use Predis\Connection\ConnectionInterface;
 use Predis\Connection\SingleConnectionInterface;
 use Predis\Profile\ServerProfile;
 use Predis\Profile\ServerProfileInterface;
+use Predis\Response\ResponseErrorInterface;
+use Predis\Response\ResponseObjectInterface;
+use Predis\Response\ServerException;
 
 /**
  * Implements a pipeline executor that wraps the whole pipeline

+ 3 - 3
lib/Predis/Pipeline/StandardExecutor.php

@@ -12,12 +12,12 @@
 namespace Predis\Pipeline;
 
 use SplQueue;
-use Predis\ResponseErrorInterface;
-use Predis\ResponseObjectInterface;
-use Predis\ServerException;
 use Predis\Command\CommandInterface;
 use Predis\Connection\ConnectionInterface;
 use Predis\Connection\ReplicationConnectionInterface;
+use Predis\Response\ResponseErrorInterface;
+use Predis\Response\ResponseObjectInterface;
+use Predis\Response\ServerException;
 
 /**
  * Implements the standard pipeline executor strategy used

+ 1 - 1
lib/Predis/Protocol/Text/Handler/ErrorResponse.php

@@ -11,8 +11,8 @@
 
 namespace Predis\Protocol\Text\Handler;
 
-use Predis\ResponseError;
 use Predis\Connection\ComposableConnectionInterface;
+use Predis\Response\ResponseError;
 
 /**
  * Handler for the error response type in the standard Redis wire protocol.

+ 1 - 1
lib/Predis/Protocol/Text/Handler/StatusResponse.php

@@ -11,8 +11,8 @@
 
 namespace Predis\Protocol\Text\Handler;
 
-use Predis\ResponseQueued;
 use Predis\Connection\ComposableConnectionInterface;
+use Predis\Response\ResponseQueued;
 
 /**
  * Handler for the status response type in the standard Redis wire protocol.

+ 2 - 2
lib/Predis/Protocol/Text/ProtocolProcessor.php

@@ -12,13 +12,13 @@
 namespace Predis\Protocol\Text;
 
 use Predis\CommunicationException;
-use Predis\ResponseError;
-use Predis\ResponseQueued;
 use Predis\Command\CommandInterface;
 use Predis\Connection\ComposableConnectionInterface;
 use Predis\Iterator\MultiBulkResponseSimple;
 use Predis\Protocol\ProtocolException;
 use Predis\Protocol\ProtocolProcessorInterface;
+use Predis\Response\ResponseError;
+use Predis\Response\ResponseQueued;
 
 /**
  * Protocol processor for the standard Redis wire protocol.

+ 1 - 1
lib/Predis/ResponseError.php → lib/Predis/Response/ResponseError.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Predis;
+namespace Predis\Response;
 
 /**
  * Represents an error returned by Redis (-ERR replies) during the execution

+ 1 - 1
lib/Predis/ResponseErrorInterface.php → lib/Predis/Response/ResponseErrorInterface.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Predis;
+namespace Predis\Response;
 
 /**
  * Represents an error returned by Redis (replies identified by "-" in the

+ 1 - 1
lib/Predis/ResponseObjectInterface.php → lib/Predis/Response/ResponseObjectInterface.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Predis;
+namespace Predis\Response;
 
 /**
  * Represents a complex reply object from Redis.

+ 1 - 1
lib/Predis/ResponseQueued.php → lib/Predis/Response/ResponseQueued.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Predis;
+namespace Predis\Response;
 
 /**
  * Represents a +QUEUED response returned by Redis as a reply to each command

+ 3 - 1
lib/Predis/ServerException.php → lib/Predis/Response/ServerException.php

@@ -9,7 +9,9 @@
  * file that was distributed with this source code.
  */
 
-namespace Predis;
+namespace Predis\Response;
+
+use Predis\PredisException;
 
 /**
  * Exception class that identifies server-side Redis errors.

+ 3 - 3
lib/Predis/Transaction/MultiExecContext.php

@@ -18,9 +18,9 @@ use Predis\ClientInterface;
 use Predis\CommunicationException;
 use Predis\ExecutableContextInterface;
 use Predis\NotSupportedException;
-use Predis\ResponseErrorInterface;
-use Predis\ResponseQueued;
-use Predis\ServerException;
+use Predis\Response\ResponseErrorInterface;
+use Predis\Response\ResponseQueued;
+use Predis\Response\ServerException;
 use Predis\Command\CommandInterface;
 use Predis\Connection\AggregatedConnectionInterface;
 use Predis\Protocol\ProtocolException;

+ 2 - 2
tests/PHPUnit/ConnectionTestCase.php

@@ -219,7 +219,7 @@ abstract class ConnectionTestCase extends StandardTestCase
         $connection->writeCommand($profile->createCommand('multi'));
         $connection->writeCommand($profile->createCommand('ping'));
         $this->assertTrue($connection->read());
-        $this->assertInstanceOf('Predis\ResponseQueued', $connection->read());
+        $this->assertInstanceOf('Predis\Response\ResponseQueued', $connection->read());
     }
 
     /**
@@ -261,7 +261,7 @@ abstract class ConnectionTestCase extends StandardTestCase
         $connection->executeCommand($profile->createCommand('set', array('foo', 'bar')));
         $connection->writeCommand($profile->createCommand('rpush', array('foo', 'baz')));
 
-        $this->assertInstanceOf('Predis\ResponseError', $error = $connection->read());
+        $this->assertInstanceOf('Predis\Response\ResponseError', $error = $connection->read());
         $this->assertRegExp('/[ERR|WRONGTYPE] Operation against a key holding the wrong kind of value/', $error->getMessage());
     }
 

+ 4 - 2
tests/Predis/ClientTest.php

@@ -17,6 +17,8 @@ use Predis\Connection\ConnectionFactory;
 use Predis\Connection\MasterSlaveReplication;
 use Predis\Connection\PredisCluster;
 use Predis\Profile\ServerProfile;
+use Predis\Response\ResponseError;
+use Predis\Response\ResponseQueued;
 
 /**
  *
@@ -398,7 +400,7 @@ class ClientTest extends StandardTestCase
 
     /**
      * @group disconnected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testExecuteCommandThrowsExceptionOnRedisError()
@@ -461,7 +463,7 @@ class ClientTest extends StandardTestCase
 
     /**
      * @group disconnected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testCallingRedisCommandThrowsExceptionOnServerError()

+ 1 - 1
tests/Predis/Command/ConnectionSelectTest.php

@@ -74,7 +74,7 @@ class ConnectionSelectTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR invalid DB index
      */
     public function testThrowsExceptionOnUnexpectedDatabase()

+ 1 - 1
tests/Predis/Command/HashDeleteTest.php

@@ -112,7 +112,7 @@ class HashDeleteTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/HashExistsTest.php

@@ -101,7 +101,7 @@ class HashExistsTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/HashGetAllTest.php

@@ -102,7 +102,7 @@ class HashGetAllTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/HashGetMultipleTest.php

@@ -118,7 +118,7 @@ class HashGetMultipleTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/HashGetTest.php

@@ -98,7 +98,7 @@ class HashGetTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 2 - 2
tests/Predis/Command/HashIncrementByFloatTest.php

@@ -110,7 +110,7 @@ class HashIncrementByFloatTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR hash value is not a valid float
      */
     public function testThrowsExceptionOnStringField()
@@ -123,7 +123,7 @@ class HashIncrementByFloatTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 2 - 2
tests/Predis/Command/HashIncrementByTest.php

@@ -110,7 +110,7 @@ class HashIncrementByTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR hash value is not an integer
      */
     public function testThrowsExceptionOnStringField()
@@ -123,7 +123,7 @@ class HashIncrementByTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/HashKeysTest.php

@@ -102,7 +102,7 @@ class HashKeysTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/HashLengthTest.php

@@ -97,7 +97,7 @@ class HashLengthTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/HashSetMultipleTest.php

@@ -124,7 +124,7 @@ class HashSetMultipleTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/HashSetPreserveTest.php

@@ -101,7 +101,7 @@ class HashSetPreserveTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/HashSetTest.php

@@ -100,7 +100,7 @@ class HashSetTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/HashValuesTest.php

@@ -102,7 +102,7 @@ class HashValuesTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/KeyMoveTest.php

@@ -107,7 +107,7 @@ class KeyMoveTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR index out of range
      */
     public function testThrowsExceptionOnInvalidDatabases()

+ 1 - 1
tests/Predis/Command/KeyRenamePreserveTest.php

@@ -99,7 +99,7 @@ class KeyRenamePreserveTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR no such key
      */
     public function testReturnsFalseOnNonExistingKeys()

+ 1 - 1
tests/Predis/Command/KeyRenameTest.php

@@ -98,7 +98,7 @@ class KeyRenameTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR no such key
      */
     public function testThrowsExceptionOnNonExistingKeys()

+ 1 - 1
tests/Predis/Command/KeySortTest.php

@@ -268,7 +268,7 @@ class KeySortTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/ListIndexTest.php

@@ -113,7 +113,7 @@ class ListIndexTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/ListInsertTest.php

@@ -121,7 +121,7 @@ class ListInsertTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/ListLengthTest.php

@@ -108,7 +108,7 @@ class ListLengthTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/ListPopFirstTest.php

@@ -108,7 +108,7 @@ class ListPopFirstTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 2 - 2
tests/Predis/Command/ListPopLastPushHeadTest.php

@@ -127,7 +127,7 @@ class ListPopLastPushHeadTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongTypeOfSourceKey()
@@ -140,7 +140,7 @@ class ListPopLastPushHeadTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongTypeOfDestinationKey()

+ 1 - 1
tests/Predis/Command/ListPopLastTest.php

@@ -108,7 +108,7 @@ class ListPopLastTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/ListPushHeadTest.php

@@ -111,7 +111,7 @@ class ListPushHeadTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/ListPushHeadXTest.php

@@ -109,7 +109,7 @@ class ListPushHeadXTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/ListPushTailTest.php

@@ -111,7 +111,7 @@ class ListPushTailTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/ListPushTailXTest.php

@@ -109,7 +109,7 @@ class ListPushTailXTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/ListRangeTest.php

@@ -152,7 +152,7 @@ class ListRangeTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/ListRemoveTest.php

@@ -136,7 +136,7 @@ class ListRemoveTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 2 - 2
tests/Predis/Command/ListSetTest.php

@@ -97,7 +97,7 @@ class ListSetTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR index out of range
      */
     public function testThrowsExceptionOnIndexOutOfRange()
@@ -110,7 +110,7 @@ class ListSetTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/ListTrimTest.php

@@ -142,7 +142,7 @@ class ListTrimTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/PubSubSubscribeByPatternTest.php

@@ -171,7 +171,7 @@ class PubSubSubscribeByPatternTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR only (P)SUBSCRIBE / (P)UNSUBSCRIBE / QUIT allowed in this context
      */
     public function testCannotSendOtherCommandsAfterPsubscribe()

+ 1 - 1
tests/Predis/Command/PubSubSubscribeTest.php

@@ -171,7 +171,7 @@ class PubSubSubscribeTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR only (P)SUBSCRIBE / (P)UNSUBSCRIBE / QUIT allowed in this context
      */
     public function testCannotSendOtherCommandsAfterSubscribe()

+ 3 - 3
tests/Predis/Command/ServerClientTest.php

@@ -187,7 +187,7 @@ BUFFER;
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @dataProvider invalidConnectionNameProvider
      */
     public function testInvalidSetNameOfConnection($invalidConnectionName)
@@ -200,7 +200,7 @@ BUFFER;
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      */
     public function testThrowsExceptioOnWrongModifier()
     {
@@ -211,7 +211,7 @@ BUFFER;
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR No such client
      */
     public function testThrowsExceptionWhenKillingUnknownClient()

+ 2 - 2
tests/Predis/Command/ServerConfigTest.php

@@ -140,7 +140,7 @@ class ServerConfigTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR Unsupported CONFIG parameter: foo
      */
     public function testThrowsExceptionWhenSettingUnknownConfiguration()
@@ -162,7 +162,7 @@ class ServerConfigTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      */
     public function testThrowsExceptionOnUnknownSubcommand()
     {

+ 2 - 2
tests/Predis/Command/ServerEvalSHATest.php

@@ -112,7 +112,7 @@ class ServerEvalSHATest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      */
     public function testThrowsExceptionOnWrongNumberOfKeys()
     {
@@ -127,7 +127,7 @@ class ServerEvalSHATest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      */
     public function testThrowsExceptionOnInvalidScript()
     {

+ 2 - 2
tests/Predis/Command/ServerEvalTest.php

@@ -110,7 +110,7 @@ class ServerEvalTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      */
     public function testThrowsExceptionOnWrongNumberOfKeys()
     {
@@ -122,7 +122,7 @@ class ServerEvalTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      */
     public function testThrowsExceptionOnInvalidScript()
     {

+ 1 - 1
tests/Predis/Command/ServerObjectTest.php

@@ -104,7 +104,7 @@ class ServerObjectTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      */
     public function testThrowsExceptionOnInvalidSubcommand()
     {

+ 1 - 1
tests/Predis/Command/ServerScriptTest.php

@@ -99,7 +99,7 @@ class ServerScriptTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      */
     public function testThrowsExceptionOnInvalidSubcommand()
     {

+ 1 - 1
tests/Predis/Command/ServerSlowlogTest.php

@@ -109,7 +109,7 @@ class ServerSlowlogTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      */
     public function testThrowsExceptionOnInvalidSubcommand()
     {

+ 1 - 1
tests/Predis/Command/SetAddTest.php

@@ -110,7 +110,7 @@ class SetAddTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/SetCardinalityTest.php

@@ -106,7 +106,7 @@ class SetCardinalityTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/SetDifferenceStoreTest.php

@@ -129,7 +129,7 @@ class SetDifferenceStoreTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongTypeOfSourceKey()

+ 1 - 1
tests/Predis/Command/SetDifferenceTest.php

@@ -131,7 +131,7 @@ class SetDifferenceTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/SetIntersectionStoreTest.php

@@ -142,7 +142,7 @@ class SetIntersectionStoreTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongTypeOfSourceKey()

+ 1 - 1
tests/Predis/Command/SetIntersectionTest.php

@@ -142,7 +142,7 @@ class SetIntersectionTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/SetIsMemberTest.php

@@ -110,7 +110,7 @@ class SetIsMemberTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/SetMembersTest.php

@@ -102,7 +102,7 @@ class SetMembersTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 2 - 2
tests/Predis/Command/SetMoveTest.php

@@ -103,7 +103,7 @@ class SetMoveTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongTypeOfSourceKey()
@@ -117,7 +117,7 @@ class SetMoveTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongTypeOfDestinationKey()

+ 1 - 1
tests/Predis/Command/SetPopTest.php

@@ -99,7 +99,7 @@ class SetPopTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/SetRandomMemberTest.php

@@ -107,7 +107,7 @@ class SetRandomMemberTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/SetRemoveTest.php

@@ -114,7 +114,7 @@ class SetRemoveTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/SetUnionStoreTest.php

@@ -129,7 +129,7 @@ class SetUnionStoreTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongTypeOfSourceKey()

+ 1 - 1
tests/Predis/Command/SetUnionTest.php

@@ -131,7 +131,7 @@ class SetUnionTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/StringAppendTest.php

@@ -109,7 +109,7 @@ class StringAppendTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/StringBitCountTest.php

@@ -106,7 +106,7 @@ class StringBitCountTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 3 - 3
tests/Predis/Command/StringBitOpTest.php

@@ -158,7 +158,7 @@ class StringBitOpTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR BITOP NOT must be called with a single source key.
      */
     public function testBitwiseNOTAcceptsOnlyOneSourceKey()
@@ -168,7 +168,7 @@ class StringBitOpTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR syntax error
      */
     public function testThrowsExceptionOnInvalidOperation()
@@ -178,7 +178,7 @@ class StringBitOpTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnInvalidSourceKey()

+ 3 - 3
tests/Predis/Command/StringDecrementByTest.php

@@ -109,7 +109,7 @@ class StringDecrementByTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR value is not an integer or out of range
      */
     public function testThrowsExceptionOnDecrementValueNotInteger()
@@ -121,7 +121,7 @@ class StringDecrementByTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR value is not an integer or out of range
      */
     public function testThrowsExceptionOnKeyValueNotInteger()
@@ -134,7 +134,7 @@ class StringDecrementByTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 2 - 2
tests/Predis/Command/StringDecrementTest.php

@@ -108,7 +108,7 @@ class StringDecrementTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR value is not an integer or out of range
      */
     public function testThrowsExceptionOnKeyValueNotInteger()
@@ -121,7 +121,7 @@ class StringDecrementTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 3 - 3
tests/Predis/Command/StringGetBitTest.php

@@ -101,7 +101,7 @@ class StringGetBitTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR bit offset is not an integer or out of range
      */
     public function testThrowsExceptionOnNegativeOffset()
@@ -114,7 +114,7 @@ class StringGetBitTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR bit offset is not an integer or out of range
      */
     public function testThrowsExceptionOnInvalidOffset()
@@ -127,7 +127,7 @@ class StringGetBitTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/StringGetRangeTest.php

@@ -112,7 +112,7 @@ class StringGetRangeTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/StringGetSetTest.php

@@ -98,7 +98,7 @@ class StringGetSetTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/StringGetTest.php

@@ -119,7 +119,7 @@ class StringGetTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 3 - 3
tests/Predis/Command/StringIncrementByFloatTest.php

@@ -109,7 +109,7 @@ class StringIncrementByFloatTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR value is not a valid float
      */
     public function testThrowsExceptionOnDecrementValueNotFloat()
@@ -121,7 +121,7 @@ class StringIncrementByFloatTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR value is not a valid float
      */
     public function testThrowsExceptionOnKeyValueNotFloat()
@@ -134,7 +134,7 @@ class StringIncrementByFloatTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 3 - 3
tests/Predis/Command/StringIncrementByTest.php

@@ -109,7 +109,7 @@ class StringIncrementByTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR value is not an integer or out of range
      */
     public function testThrowsExceptionOnDecrementValueNotInteger()
@@ -121,7 +121,7 @@ class StringIncrementByTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR value is not an integer or out of range
      */
     public function testThrowsExceptionOnKeyValueNotInteger()
@@ -134,7 +134,7 @@ class StringIncrementByTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/StringIncrementTest.php

@@ -108,7 +108,7 @@ class StringIncrementTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 3 - 3
tests/Predis/Command/StringPreciseSetExpireTest.php

@@ -109,7 +109,7 @@ class StringPreciseSetExpireTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR value is not an integer or out of range
      */
     public function testThrowsExceptionOnNonIntegerTTL()
@@ -119,7 +119,7 @@ class StringPreciseSetExpireTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR invalid expire time in SETEX
      * @todo Should not Redis return PSETEX instead of SETEX here?
      */
@@ -130,7 +130,7 @@ class StringPreciseSetExpireTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR invalid expire time in SETEX
      * @todo Should not Redis return PSETEX instead of SETEX here?
      */

+ 4 - 4
tests/Predis/Command/StringSetBitTest.php

@@ -113,7 +113,7 @@ class StringSetBitTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR bit is not an integer or out of range
      */
     public function testThrowsExceptionOnInvalidBitValue()
@@ -123,7 +123,7 @@ class StringSetBitTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR bit offset is not an integer or out of range
      */
     public function testThrowsExceptionOnNegativeOffset()
@@ -133,7 +133,7 @@ class StringSetBitTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR bit offset is not an integer or out of range
      */
     public function testThrowsExceptionOnInvalidOffset()
@@ -143,7 +143,7 @@ class StringSetBitTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 3 - 3
tests/Predis/Command/StringSetExpireTest.php

@@ -110,7 +110,7 @@ class StringSetExpireTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR value is not an integer or out of range
      */
     public function testThrowsExceptionOnNonIntegerTTL()
@@ -120,7 +120,7 @@ class StringSetExpireTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR invalid expire time in SETEX
      */
     public function testThrowsExceptionOnZeroTTL()
@@ -130,7 +130,7 @@ class StringSetExpireTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR invalid expire time in SETEX
      */
     public function testThrowsExceptionOnNegativeTTL()

+ 2 - 2
tests/Predis/Command/StringSetRangeTest.php

@@ -127,7 +127,7 @@ class StringSetRangeTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR offset is out of range
      */
     public function testThrowsExceptionOnInvalidOffset()
@@ -137,7 +137,7 @@ class StringSetRangeTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/StringStrlenTest.php

@@ -108,7 +108,7 @@ class StringStrlenTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 2 - 2
tests/Predis/Command/TransactionDiscardTest.php

@@ -63,14 +63,14 @@ class TransactionDiscardTest extends CommandTestCase
 
         $redis->multi();
 
-        $this->assertInstanceOf('Predis\ResponseQueued', $redis->set('foo', 'bar'));
+        $this->assertInstanceOf('Predis\Response\ResponseQueued', $redis->set('foo', 'bar'));
         $this->assertTrue($redis->discard());
         $this->assertFalse($redis->exists('foo'));
     }
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR DISCARD without MULTI
      */
     public function testThrowsExceptionWhenCallingOutsideTransaction()

+ 1 - 1
tests/Predis/Command/TransactionExecTest.php

@@ -102,7 +102,7 @@ class TransactionExecTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR EXEC without MULTI
      */
     public function testThrowsExceptionWhenCallingOutsideTransaction()

+ 3 - 3
tests/Predis/Command/TransactionMultiTest.php

@@ -74,13 +74,13 @@ class TransactionMultiTest extends CommandTestCase
         $redis = $this->getClient();
 
         $this->assertTrue($redis->multi());
-        $this->assertInstanceOf('Predis\ResponseObjectInterface', $redis->echo('tx1'));
-        $this->assertInstanceOf('Predis\ResponseQueued', $redis->echo('tx2'));
+        $this->assertInstanceOf('Predis\Response\ResponseObjectInterface', $redis->echo('tx1'));
+        $this->assertInstanceOf('Predis\Response\ResponseQueued', $redis->echo('tx2'));
     }
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR MULTI calls can not be nested
      */
     public function testThrowsExceptionWhenCallingMultiInsideTransaction()

+ 1 - 1
tests/Predis/Command/TransactionUnwatchTest.php

@@ -81,6 +81,6 @@ class TransactionUnwatchTest extends CommandTestCase
         $redis = $this->getClient();
 
         $redis->multi();
-        $this->assertInstanceOf('Predis\ResponseQueued', $redis->unwatch());
+        $this->assertInstanceOf('Predis\Response\ResponseQueued', $redis->unwatch());
     }
 }

+ 3 - 3
tests/Predis/Command/TransactionWatchTest.php

@@ -108,7 +108,7 @@ class TransactionWatchTest extends CommandTestCase
 
         $this->assertTrue($redis1->watch('foo', 'hoge'));
         $this->assertTrue($redis1->multi());
-        $this->assertInstanceOf('Predis\ResponseQueued', $redis1->get('foo'));
+        $this->assertInstanceOf('Predis\Response\ResponseQueued', $redis1->get('foo'));
         $this->assertTrue($redis2->set('foo', 'hijacked'));
         $this->assertNull($redis1->exec());
         $this->assertSame('hijacked', $redis1->get('foo'));
@@ -124,7 +124,7 @@ class TransactionWatchTest extends CommandTestCase
 
         $this->assertTrue($redis1->watch('foo'));
         $this->assertTrue($redis1->multi());
-        $this->assertInstanceOf('Predis\ResponseQueued', $redis1->set('foo', 'bar'));
+        $this->assertInstanceOf('Predis\Response\ResponseQueued', $redis1->set('foo', 'bar'));
         $this->assertTrue($redis2->set('foo', 'hijacked'));
         $this->assertNull($redis1->exec());
         $this->assertSame('hijacked', $redis1->get('foo'));
@@ -132,7 +132,7 @@ class TransactionWatchTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage ERR WATCH inside MULTI is not allowed
      */
     public function testThrowsExceptionWhenCallingInsideTransaction()

+ 1 - 1
tests/Predis/Command/ZSetAddTest.php

@@ -123,7 +123,7 @@ class ZSetAddTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/ZSetCardinalityTest.php

@@ -97,7 +97,7 @@ class ZSetCardinalityTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

+ 1 - 1
tests/Predis/Command/ZSetCountTest.php

@@ -130,7 +130,7 @@ class ZSetCountTest extends CommandTestCase
 
     /**
      * @group connected
-     * @expectedException Predis\ServerException
+     * @expectedException Predis\Response\ServerException
      * @expectedExceptionMessage Operation against a key holding the wrong kind of value
      */
     public function testThrowsExceptionOnWrongType()

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov