From aa5c893d5a035ce7bce242c6719ea46c1d4b46bd Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Sun, 27 Jul 2014 21:42:24 +0200 Subject: [PATCH] [phpdoc] Fix undefined namespaces. --- src/Cluster/StrategyInterface.php | 2 +- tests/PHPUnit/PredisConnectionTestCase.php | 6 +++--- tests/PHPUnit/PredisDistributorTestCase.php | 2 +- tests/PHPUnit/PredisProfileTestCase.php | 2 +- tests/Predis/ClientTest.php | 8 ++++---- .../Distributor/EmptyRingExceptionTest.php | 2 +- .../Predis/Collection/Iterator/HashKeyTest.php | 2 +- .../Collection/Iterator/KeyspaceTest.php | 2 +- .../Predis/Collection/Iterator/SetKeyTest.php | 2 +- .../Collection/Iterator/SortedSetKeyTest.php | 2 +- tests/Predis/Command/ConnectionSelectTest.php | 2 +- tests/Predis/Command/HashDeleteTest.php | 2 +- tests/Predis/Command/HashExistsTest.php | 2 +- tests/Predis/Command/HashGetAllTest.php | 2 +- tests/Predis/Command/HashGetMultipleTest.php | 2 +- tests/Predis/Command/HashGetTest.php | 2 +- .../Command/HashIncrementByFloatTest.php | 4 ++-- tests/Predis/Command/HashIncrementByTest.php | 4 ++-- tests/Predis/Command/HashKeysTest.php | 2 +- tests/Predis/Command/HashLengthTest.php | 2 +- tests/Predis/Command/HashSetMultipleTest.php | 2 +- tests/Predis/Command/HashSetPreserveTest.php | 2 +- tests/Predis/Command/HashSetTest.php | 2 +- tests/Predis/Command/HashValuesTest.php | 2 +- tests/Predis/Command/HyperLogLogAddTest.php | 2 +- tests/Predis/Command/HyperLogLogCountTest.php | 4 ++-- tests/Predis/Command/HyperLogLogMergeTest.php | 2 +- tests/Predis/Command/KeyMoveTest.php | 2 +- tests/Predis/Command/KeyRenamePreserveTest.php | 2 +- tests/Predis/Command/KeyRenameTest.php | 2 +- tests/Predis/Command/KeySortTest.php | 6 +++--- tests/Predis/Command/ListIndexTest.php | 2 +- tests/Predis/Command/ListInsertTest.php | 2 +- tests/Predis/Command/ListLengthTest.php | 2 +- tests/Predis/Command/ListPopFirstTest.php | 2 +- .../Predis/Command/ListPopLastPushHeadTest.php | 4 ++-- tests/Predis/Command/ListPopLastTest.php | 2 +- tests/Predis/Command/ListPushHeadTest.php | 2 +- tests/Predis/Command/ListPushHeadXTest.php | 2 +- tests/Predis/Command/ListPushTailTest.php | 2 +- tests/Predis/Command/ListPushTailXTest.php | 2 +- tests/Predis/Command/ListRangeTest.php | 2 +- tests/Predis/Command/ListRemoveTest.php | 2 +- tests/Predis/Command/ListSetTest.php | 4 ++-- tests/Predis/Command/ListTrimTest.php | 2 +- .../Command/PubSubSubscribeByPatternTest.php | 2 +- tests/Predis/Command/PubSubSubscribeTest.php | 2 +- tests/Predis/Command/ServerClientTest.php | 6 +++--- tests/Predis/Command/ServerConfigTest.php | 4 ++-- tests/Predis/Command/ServerEvalSHATest.php | 4 ++-- tests/Predis/Command/ServerEvalTest.php | 4 ++-- tests/Predis/Command/ServerObjectTest.php | 2 +- tests/Predis/Command/ServerScriptTest.php | 2 +- tests/Predis/Command/ServerSlowlogTest.php | 2 +- tests/Predis/Command/SetAddTest.php | 2 +- tests/Predis/Command/SetCardinalityTest.php | 2 +- .../Predis/Command/SetDifferenceStoreTest.php | 2 +- tests/Predis/Command/SetDifferenceTest.php | 2 +- .../Command/SetIntersectionStoreTest.php | 2 +- tests/Predis/Command/SetIntersectionTest.php | 2 +- tests/Predis/Command/SetIsMemberTest.php | 2 +- tests/Predis/Command/SetMembersTest.php | 2 +- tests/Predis/Command/SetMoveTest.php | 4 ++-- tests/Predis/Command/SetPopTest.php | 2 +- tests/Predis/Command/SetRandomMemberTest.php | 2 +- tests/Predis/Command/SetRemoveTest.php | 2 +- tests/Predis/Command/SetUnionStoreTest.php | 2 +- tests/Predis/Command/SetUnionTest.php | 2 +- tests/Predis/Command/StringAppendTest.php | 2 +- tests/Predis/Command/StringBitCountTest.php | 2 +- tests/Predis/Command/StringBitOpTest.php | 6 +++--- tests/Predis/Command/StringDecrementByTest.php | 6 +++--- tests/Predis/Command/StringDecrementTest.php | 4 ++-- tests/Predis/Command/StringGetBitTest.php | 6 +++--- tests/Predis/Command/StringGetRangeTest.php | 2 +- tests/Predis/Command/StringGetSetTest.php | 2 +- tests/Predis/Command/StringGetTest.php | 2 +- .../Command/StringIncrementByFloatTest.php | 6 +++--- tests/Predis/Command/StringIncrementByTest.php | 6 +++--- tests/Predis/Command/StringIncrementTest.php | 2 +- .../Command/StringPreciseSetExpireTest.php | 6 +++--- tests/Predis/Command/StringSetBitTest.php | 8 ++++---- tests/Predis/Command/StringSetExpireTest.php | 6 +++--- tests/Predis/Command/StringSetRangeTest.php | 4 ++-- tests/Predis/Command/StringStrlenTest.php | 2 +- .../Predis/Command/TransactionDiscardTest.php | 2 +- tests/Predis/Command/TransactionExecTest.php | 2 +- tests/Predis/Command/TransactionMultiTest.php | 2 +- tests/Predis/Command/TransactionWatchTest.php | 2 +- tests/Predis/Command/ZSetAddTest.php | 2 +- tests/Predis/Command/ZSetCardinalityTest.php | 2 +- tests/Predis/Command/ZSetCountTest.php | 2 +- tests/Predis/Command/ZSetIncrementByTest.php | 2 +- .../Command/ZSetIntersectionStoreTest.php | 2 +- tests/Predis/Command/ZSetLexCountTest.php | 4 ++-- tests/Predis/Command/ZSetRangeByLexTest.php | 4 ++-- tests/Predis/Command/ZSetRangeByScoreTest.php | 2 +- tests/Predis/Command/ZSetRangeTest.php | 2 +- tests/Predis/Command/ZSetRankTest.php | 2 +- .../Command/ZSetRemoveRangeByLexTest.php | 4 ++-- .../Command/ZSetRemoveRangeByRankTest.php | 2 +- .../Command/ZSetRemoveRangeByScoreTest.php | 2 +- tests/Predis/Command/ZSetRemoveTest.php | 2 +- .../Command/ZSetReverseRangeByScoreTest.php | 2 +- tests/Predis/Command/ZSetReverseRangeTest.php | 2 +- tests/Predis/Command/ZSetReverseRankTest.php | 2 +- tests/Predis/Command/ZSetScoreTest.php | 2 +- tests/Predis/Command/ZSetUnionStoreTest.php | 2 +- tests/Predis/CommunicationExceptionTest.php | 2 +- .../Predis/Configuration/ProfileOptionTest.php | 2 +- .../Aggregate/MasterSlaveReplicationTest.php | 2 +- .../Connection/Aggregate/PredisClusterTest.php | 2 +- .../Connection/Aggregate/RedisClusterTest.php | 2 +- .../CompositeStreamConnectionTest.php | 2 +- .../PhpiredisSocketConnectionTest.php | 4 ++-- .../PhpiredisStreamConnectionTest.php | 2 +- .../Predis/Connection/StreamConnectionTest.php | 2 +- .../Predis/Connection/WebdisConnectionTest.php | 14 +++++++------- tests/Predis/Monitor/ConsumerTest.php | 4 ++-- tests/Predis/Pipeline/AtomicTest.php | 8 ++++---- tests/Predis/Pipeline/PipelineTest.php | 4 ++-- tests/Predis/Profile/FactoryTest.php | 2 +- .../Protocol/Text/Handler/BulkResponseTest.php | 2 +- .../Text/Handler/IntegerResponseTest.php | 2 +- .../Text/Handler/MultiBulkResponseTest.php | 2 +- .../StreamableMultiBulkResponseTest.php | 2 +- .../Protocol/Text/ProtocolProcessorTest.php | 2 +- .../Protocol/Text/ResponseReaderTest.php | 4 ++-- tests/Predis/PubSub/ConsumerTest.php | 4 ++-- .../Replication/ReplicationStrategyTest.php | 2 +- tests/Predis/Transaction/MultiExecTest.php | 18 +++++++++--------- 131 files changed, 193 insertions(+), 193 deletions(-) diff --git a/src/Cluster/StrategyInterface.php b/src/Cluster/StrategyInterface.php index ae6359dc..a31a1d05 100644 --- a/src/Cluster/StrategyInterface.php +++ b/src/Cluster/StrategyInterface.php @@ -11,7 +11,7 @@ namespace Predis\Cluster; -use Predis\Cluster\Distribution\DistributorInterface; +use Predis\Cluster\Distributor\DistributorInterface; use Predis\Command\CommandInterface; /** diff --git a/tests/PHPUnit/PredisConnectionTestCase.php b/tests/PHPUnit/PredisConnectionTestCase.php index c70d17d0..307dd72f 100644 --- a/tests/PHPUnit/PredisConnectionTestCase.php +++ b/tests/PHPUnit/PredisConnectionTestCase.php @@ -22,7 +22,7 @@ abstract class PredisConnectionTestCase extends PredisTestCase /** * @group disconnected * @group slow - * @expectedException Predis\Connection\ConnectionException + * @expectedException \Predis\Connection\ConnectionException */ public function testThrowExceptionWhenUnableToConnect() { @@ -283,7 +283,7 @@ abstract class PredisConnectionTestCase extends PredisTestCase /** * @group connected * @group slow - * @expectedException Predis\Connection\ConnectionException + * @expectedException \Predis\Connection\ConnectionException */ public function testThrowsExceptionOnConnectionTimeout() { @@ -295,7 +295,7 @@ abstract class PredisConnectionTestCase extends PredisTestCase /** * @group connected * @group slow - * @expectedException Predis\Connection\ConnectionException + * @expectedException \Predis\Connection\ConnectionException */ public function testThrowsExceptionOnReadWriteTimeout() { diff --git a/tests/PHPUnit/PredisDistributorTestCase.php b/tests/PHPUnit/PredisDistributorTestCase.php index e76fa4fa..a010fb98 100644 --- a/tests/PHPUnit/PredisDistributorTestCase.php +++ b/tests/PHPUnit/PredisDistributorTestCase.php @@ -21,7 +21,7 @@ abstract class PredisDistributorTestCase extends PredisTestCase /** * Returns a new instance of the tested distributor. * - * @return Predis\Cluster\Distributor\DistributorInterface + * @return \Predis\Cluster\Distributor\DistributorInterface */ abstract protected function getDistributorInstance(); diff --git a/tests/PHPUnit/PredisProfileTestCase.php b/tests/PHPUnit/PredisProfileTestCase.php index cb875a9f..9e34fbbc 100644 --- a/tests/PHPUnit/PredisProfileTestCase.php +++ b/tests/PHPUnit/PredisProfileTestCase.php @@ -188,7 +188,7 @@ abstract class PredisProfileTestCase extends PredisTestCase /** * @group disconnected - * @expectedException Predis\ClientException + * @expectedException \Predis\ClientException * @expectedExceptionMessage Command 'UNKNOWN' is not a registered Redis command. */ public function testCreateUndefinedCommand() diff --git a/tests/Predis/ClientTest.php b/tests/Predis/ClientTest.php index 1ae62237..fa6b9717 100644 --- a/tests/Predis/ClientTest.php +++ b/tests/Predis/ClientTest.php @@ -394,7 +394,7 @@ class ClientTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testExecuteCommandThrowsExceptionOnRedisError() @@ -457,7 +457,7 @@ class ClientTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testCallingRedisCommandThrowsExceptionOnServerError() @@ -565,7 +565,7 @@ class ClientTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\ClientException + * @expectedException \Predis\ClientException * @expectedExceptionMessage Command 'INVALIDCOMMAND' is not a registered Redis command. */ public function testThrowsExceptionOnNonRegisteredRedisCommand() @@ -591,7 +591,7 @@ class ClientTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage Retrieving connections by ID is supported only by aggregate connections. */ public function testGetConnectionByIdWorksOnlyWithAggregateConnections() diff --git a/tests/Predis/Cluster/Distributor/EmptyRingExceptionTest.php b/tests/Predis/Cluster/Distributor/EmptyRingExceptionTest.php index ab10df50..3e9d96f9 100644 --- a/tests/Predis/Cluster/Distributor/EmptyRingExceptionTest.php +++ b/tests/Predis/Cluster/Distributor/EmptyRingExceptionTest.php @@ -20,7 +20,7 @@ class EmptyRingExceptionTest extends PredisTestCase { /** * @group disconnected - * @expectedException Predis\Cluster\Distributor\EmptyRingException + * @expectedException \Predis\Cluster\Distributor\EmptyRingException */ public function testExceptionMessage() { diff --git a/tests/Predis/Collection/Iterator/HashKeyTest.php b/tests/Predis/Collection/Iterator/HashKeyTest.php index 4935e759..1a388bbb 100644 --- a/tests/Predis/Collection/Iterator/HashKeyTest.php +++ b/tests/Predis/Collection/Iterator/HashKeyTest.php @@ -21,7 +21,7 @@ class HashKeyTest extends PredisTestCase { /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage The current profile does not support 'HSCAN'. */ public function testThrowsExceptionOnInvalidProfile() diff --git a/tests/Predis/Collection/Iterator/KeyspaceTest.php b/tests/Predis/Collection/Iterator/KeyspaceTest.php index 361de284..f96a1a76 100644 --- a/tests/Predis/Collection/Iterator/KeyspaceTest.php +++ b/tests/Predis/Collection/Iterator/KeyspaceTest.php @@ -21,7 +21,7 @@ class KeyspaceTest extends PredisTestCase { /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage The current profile does not support 'SCAN'. */ public function testThrowsExceptionOnInvalidProfile() diff --git a/tests/Predis/Collection/Iterator/SetKeyTest.php b/tests/Predis/Collection/Iterator/SetKeyTest.php index 1805dd3f..00c1c5fb 100644 --- a/tests/Predis/Collection/Iterator/SetKeyTest.php +++ b/tests/Predis/Collection/Iterator/SetKeyTest.php @@ -21,7 +21,7 @@ class SetKeyTest extends PredisTestCase { /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage The current profile does not support 'SSCAN'. */ public function testThrowsExceptionOnInvalidProfile() diff --git a/tests/Predis/Collection/Iterator/SortedSetKeyTest.php b/tests/Predis/Collection/Iterator/SortedSetKeyTest.php index 38396808..1f679b72 100644 --- a/tests/Predis/Collection/Iterator/SortedSetKeyTest.php +++ b/tests/Predis/Collection/Iterator/SortedSetKeyTest.php @@ -21,7 +21,7 @@ class SortedSetKeyTest extends PredisTestCase { /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage The current profile does not support 'ZSCAN'. */ public function testThrowsExceptionOnInvalidProfile() diff --git a/tests/Predis/Command/ConnectionSelectTest.php b/tests/Predis/Command/ConnectionSelectTest.php index 72c19ab8..caa9f5e6 100644 --- a/tests/Predis/Command/ConnectionSelectTest.php +++ b/tests/Predis/Command/ConnectionSelectTest.php @@ -70,7 +70,7 @@ class ConnectionSelectTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR invalid DB index */ public function testThrowsExceptionOnUnexpectedDatabase() diff --git a/tests/Predis/Command/HashDeleteTest.php b/tests/Predis/Command/HashDeleteTest.php index 67907898..d3f88e61 100644 --- a/tests/Predis/Command/HashDeleteTest.php +++ b/tests/Predis/Command/HashDeleteTest.php @@ -85,7 +85,7 @@ class HashDeleteTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/HashExistsTest.php b/tests/Predis/Command/HashExistsTest.php index 4ff40c0f..66013d35 100644 --- a/tests/Predis/Command/HashExistsTest.php +++ b/tests/Predis/Command/HashExistsTest.php @@ -74,7 +74,7 @@ class HashExistsTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/HashGetAllTest.php b/tests/Predis/Command/HashGetAllTest.php index c89155c3..4b127c5b 100644 --- a/tests/Predis/Command/HashGetAllTest.php +++ b/tests/Predis/Command/HashGetAllTest.php @@ -75,7 +75,7 @@ class HashGetAllTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/HashGetMultipleTest.php b/tests/Predis/Command/HashGetMultipleTest.php index ea88b0d9..0cce43e5 100644 --- a/tests/Predis/Command/HashGetMultipleTest.php +++ b/tests/Predis/Command/HashGetMultipleTest.php @@ -91,7 +91,7 @@ class HashGetMultipleTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/HashGetTest.php b/tests/Predis/Command/HashGetTest.php index 26862943..37ac3822 100644 --- a/tests/Predis/Command/HashGetTest.php +++ b/tests/Predis/Command/HashGetTest.php @@ -71,7 +71,7 @@ class HashGetTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/HashIncrementByFloatTest.php b/tests/Predis/Command/HashIncrementByFloatTest.php index e2cda575..afb1c4b3 100644 --- a/tests/Predis/Command/HashIncrementByFloatTest.php +++ b/tests/Predis/Command/HashIncrementByFloatTest.php @@ -83,7 +83,7 @@ class HashIncrementByFloatTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR hash value is not a valid float */ public function testThrowsExceptionOnStringField() @@ -96,7 +96,7 @@ class HashIncrementByFloatTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/HashIncrementByTest.php b/tests/Predis/Command/HashIncrementByTest.php index eb82e94f..d4a418a0 100644 --- a/tests/Predis/Command/HashIncrementByTest.php +++ b/tests/Predis/Command/HashIncrementByTest.php @@ -83,7 +83,7 @@ class HashIncrementByTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR hash value is not an integer */ public function testThrowsExceptionOnStringField() @@ -96,7 +96,7 @@ class HashIncrementByTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/HashKeysTest.php b/tests/Predis/Command/HashKeysTest.php index dbefeb33..0f02ff42 100644 --- a/tests/Predis/Command/HashKeysTest.php +++ b/tests/Predis/Command/HashKeysTest.php @@ -75,7 +75,7 @@ class HashKeysTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/HashLengthTest.php b/tests/Predis/Command/HashLengthTest.php index ed21b175..a6ba46a9 100644 --- a/tests/Predis/Command/HashLengthTest.php +++ b/tests/Predis/Command/HashLengthTest.php @@ -70,7 +70,7 @@ class HashLengthTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/HashSetMultipleTest.php b/tests/Predis/Command/HashSetMultipleTest.php index 3b2eb10a..2415d82e 100644 --- a/tests/Predis/Command/HashSetMultipleTest.php +++ b/tests/Predis/Command/HashSetMultipleTest.php @@ -97,7 +97,7 @@ class HashSetMultipleTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/HashSetPreserveTest.php b/tests/Predis/Command/HashSetPreserveTest.php index 7d17164e..5fb488e5 100644 --- a/tests/Predis/Command/HashSetPreserveTest.php +++ b/tests/Predis/Command/HashSetPreserveTest.php @@ -74,7 +74,7 @@ class HashSetPreserveTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/HashSetTest.php b/tests/Predis/Command/HashSetTest.php index 35f1264a..7eb7ce6a 100644 --- a/tests/Predis/Command/HashSetTest.php +++ b/tests/Predis/Command/HashSetTest.php @@ -73,7 +73,7 @@ class HashSetTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/HashValuesTest.php b/tests/Predis/Command/HashValuesTest.php index b4e61c62..1e15d573 100644 --- a/tests/Predis/Command/HashValuesTest.php +++ b/tests/Predis/Command/HashValuesTest.php @@ -75,7 +75,7 @@ class HashValuesTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/HyperLogLogAddTest.php b/tests/Predis/Command/HyperLogLogAddTest.php index ef3f3e50..abaa2eff 100644 --- a/tests/Predis/Command/HyperLogLogAddTest.php +++ b/tests/Predis/Command/HyperLogLogAddTest.php @@ -76,7 +76,7 @@ class HyperLogLogAddTest extends PredisCommandTestCase /** * @group connected * @requiresRedisVersion >= 2.8.9 - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/HyperLogLogCountTest.php b/tests/Predis/Command/HyperLogLogCountTest.php index 1ba9af47..c5434610 100644 --- a/tests/Predis/Command/HyperLogLogCountTest.php +++ b/tests/Predis/Command/HyperLogLogCountTest.php @@ -77,7 +77,7 @@ class HyperLogLogCountTest extends PredisCommandTestCase /** * @group connected * @requiresRedisVersion >= 2.8.9 - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() @@ -91,7 +91,7 @@ class HyperLogLogCountTest extends PredisCommandTestCase /** * @group connected * @requiresRedisVersion >= 2.8.9 - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongTypeOfAtLeastOneKey() diff --git a/tests/Predis/Command/HyperLogLogMergeTest.php b/tests/Predis/Command/HyperLogLogMergeTest.php index 34dcf55a..9bad2e70 100644 --- a/tests/Predis/Command/HyperLogLogMergeTest.php +++ b/tests/Predis/Command/HyperLogLogMergeTest.php @@ -73,7 +73,7 @@ class HyperLogLogMergeTest extends PredisCommandTestCase /** * @group connected * @requiresRedisVersion >= 2.8.9 - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/KeyMoveTest.php b/tests/Predis/Command/KeyMoveTest.php index 448b3d8a..22154d55 100644 --- a/tests/Predis/Command/KeyMoveTest.php +++ b/tests/Predis/Command/KeyMoveTest.php @@ -80,7 +80,7 @@ class KeyMoveTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR index out of range */ public function testThrowsExceptionOnInvalidDatabases() diff --git a/tests/Predis/Command/KeyRenamePreserveTest.php b/tests/Predis/Command/KeyRenamePreserveTest.php index a6ed04a0..4a2078da 100644 --- a/tests/Predis/Command/KeyRenamePreserveTest.php +++ b/tests/Predis/Command/KeyRenamePreserveTest.php @@ -72,7 +72,7 @@ class KeyRenamePreserveTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR no such key */ public function testReturnsFalseOnNonExistingKeys() diff --git a/tests/Predis/Command/KeyRenameTest.php b/tests/Predis/Command/KeyRenameTest.php index 8494dad7..c2f428fd 100644 --- a/tests/Predis/Command/KeyRenameTest.php +++ b/tests/Predis/Command/KeyRenameTest.php @@ -71,7 +71,7 @@ class KeyRenameTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR no such key */ public function testThrowsExceptionOnNonExistingKeys() diff --git a/tests/Predis/Command/KeySortTest.php b/tests/Predis/Command/KeySortTest.php index 5470081d..a7e40327 100644 --- a/tests/Predis/Command/KeySortTest.php +++ b/tests/Predis/Command/KeySortTest.php @@ -36,11 +36,11 @@ class KeySortTest extends PredisCommandTestCase /** * Utility method to to an LPUSH of some unordered values on a key. * - * @param Predis\Client $redis Redis client instance. + * @param \Predis\Client $redis Redis client instance. * @param string $key Target key * @return array */ - protected function lpushUnorderedList(Predis\Client $redis, $key) + protected function lpushUnorderedList(\Predis\Client $redis, $key) { $list = array(2, 100, 3, 1, 30, 10); $redis->lpush($key, $list); @@ -229,7 +229,7 @@ class KeySortTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ListIndexTest.php b/tests/Predis/Command/ListIndexTest.php index 9fc6fd14..72fe2b35 100644 --- a/tests/Predis/Command/ListIndexTest.php +++ b/tests/Predis/Command/ListIndexTest.php @@ -86,7 +86,7 @@ class ListIndexTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ListInsertTest.php b/tests/Predis/Command/ListInsertTest.php index 70d19952..895c5c35 100644 --- a/tests/Predis/Command/ListInsertTest.php +++ b/tests/Predis/Command/ListInsertTest.php @@ -94,7 +94,7 @@ class ListInsertTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ListLengthTest.php b/tests/Predis/Command/ListLengthTest.php index 96668acc..2b6b8347 100644 --- a/tests/Predis/Command/ListLengthTest.php +++ b/tests/Predis/Command/ListLengthTest.php @@ -81,7 +81,7 @@ class ListLengthTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ListPopFirstTest.php b/tests/Predis/Command/ListPopFirstTest.php index 8307798b..8a70296d 100644 --- a/tests/Predis/Command/ListPopFirstTest.php +++ b/tests/Predis/Command/ListPopFirstTest.php @@ -81,7 +81,7 @@ class ListPopFirstTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ListPopLastPushHeadTest.php b/tests/Predis/Command/ListPopLastPushHeadTest.php index c555a50d..61bcd3dc 100644 --- a/tests/Predis/Command/ListPopLastPushHeadTest.php +++ b/tests/Predis/Command/ListPopLastPushHeadTest.php @@ -100,7 +100,7 @@ class ListPopLastPushHeadTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongTypeOfSourceKey() @@ -113,7 +113,7 @@ class ListPopLastPushHeadTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongTypeOfDestinationKey() diff --git a/tests/Predis/Command/ListPopLastTest.php b/tests/Predis/Command/ListPopLastTest.php index d7a250aa..5798406b 100644 --- a/tests/Predis/Command/ListPopLastTest.php +++ b/tests/Predis/Command/ListPopLastTest.php @@ -81,7 +81,7 @@ class ListPopLastTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ListPushHeadTest.php b/tests/Predis/Command/ListPushHeadTest.php index edd409e1..bd8fd1fb 100644 --- a/tests/Predis/Command/ListPushHeadTest.php +++ b/tests/Predis/Command/ListPushHeadTest.php @@ -84,7 +84,7 @@ class ListPushHeadTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ListPushHeadXTest.php b/tests/Predis/Command/ListPushHeadXTest.php index 7f0c5a05..55650192 100644 --- a/tests/Predis/Command/ListPushHeadXTest.php +++ b/tests/Predis/Command/ListPushHeadXTest.php @@ -82,7 +82,7 @@ class ListPushHeadXTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ListPushTailTest.php b/tests/Predis/Command/ListPushTailTest.php index d1ca8144..3700ffdc 100644 --- a/tests/Predis/Command/ListPushTailTest.php +++ b/tests/Predis/Command/ListPushTailTest.php @@ -84,7 +84,7 @@ class ListPushTailTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ListPushTailXTest.php b/tests/Predis/Command/ListPushTailXTest.php index db67add5..898a19c2 100644 --- a/tests/Predis/Command/ListPushTailXTest.php +++ b/tests/Predis/Command/ListPushTailXTest.php @@ -82,7 +82,7 @@ class ListPushTailXTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ListRangeTest.php b/tests/Predis/Command/ListRangeTest.php index 1422d1e8..6da4aa8b 100644 --- a/tests/Predis/Command/ListRangeTest.php +++ b/tests/Predis/Command/ListRangeTest.php @@ -125,7 +125,7 @@ class ListRangeTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ListRemoveTest.php b/tests/Predis/Command/ListRemoveTest.php index cd9d90e1..a7013ee0 100644 --- a/tests/Predis/Command/ListRemoveTest.php +++ b/tests/Predis/Command/ListRemoveTest.php @@ -109,7 +109,7 @@ class ListRemoveTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ListSetTest.php b/tests/Predis/Command/ListSetTest.php index 7ad9286f..177a73ee 100644 --- a/tests/Predis/Command/ListSetTest.php +++ b/tests/Predis/Command/ListSetTest.php @@ -70,7 +70,7 @@ class ListSetTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR index out of range */ public function testThrowsExceptionOnIndexOutOfRange() @@ -83,7 +83,7 @@ class ListSetTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ListTrimTest.php b/tests/Predis/Command/ListTrimTest.php index 6c11d25b..0dca56de 100644 --- a/tests/Predis/Command/ListTrimTest.php +++ b/tests/Predis/Command/ListTrimTest.php @@ -115,7 +115,7 @@ class ListTrimTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/PubSubSubscribeByPatternTest.php b/tests/Predis/Command/PubSubSubscribeByPatternTest.php index 7042a91c..ec8d5350 100644 --- a/tests/Predis/Command/PubSubSubscribeByPatternTest.php +++ b/tests/Predis/Command/PubSubSubscribeByPatternTest.php @@ -144,7 +144,7 @@ class PubSubSubscribeByPatternTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR only (P)SUBSCRIBE / (P)UNSUBSCRIBE / QUIT allowed in this context */ public function testCannotSendOtherCommandsAfterPsubscribe() diff --git a/tests/Predis/Command/PubSubSubscribeTest.php b/tests/Predis/Command/PubSubSubscribeTest.php index adb73829..4155c1e5 100644 --- a/tests/Predis/Command/PubSubSubscribeTest.php +++ b/tests/Predis/Command/PubSubSubscribeTest.php @@ -144,7 +144,7 @@ class PubSubSubscribeTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR only (P)SUBSCRIBE / (P)UNSUBSCRIBE / QUIT allowed in this context */ public function testCannotSendOtherCommandsAfterSubscribe() diff --git a/tests/Predis/Command/ServerClientTest.php b/tests/Predis/Command/ServerClientTest.php index 8015c4d4..1e45a0af 100644 --- a/tests/Predis/Command/ServerClientTest.php +++ b/tests/Predis/Command/ServerClientTest.php @@ -186,7 +186,7 @@ BUFFER; * @requiresRedisVersion >= 2.6.9 * @dataProvider invalidConnectionNameProvider * - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @param string $invalidConnectionName */ public function testInvalidSetNameOfConnection($invalidConnectionName) @@ -197,7 +197,7 @@ BUFFER; /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException */ public function testThrowsExceptioOnWrongModifier() { @@ -208,7 +208,7 @@ BUFFER; /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR No such client */ public function testThrowsExceptionWhenKillingUnknownClient() diff --git a/tests/Predis/Command/ServerConfigTest.php b/tests/Predis/Command/ServerConfigTest.php index 39158605..fe663e00 100644 --- a/tests/Predis/Command/ServerConfigTest.php +++ b/tests/Predis/Command/ServerConfigTest.php @@ -134,7 +134,7 @@ class ServerConfigTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR Unsupported CONFIG parameter: foo */ public function testThrowsExceptionWhenSettingUnknownConfiguration() @@ -156,7 +156,7 @@ class ServerConfigTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException */ public function testThrowsExceptionOnUnknownSubcommand() { diff --git a/tests/Predis/Command/ServerEvalSHATest.php b/tests/Predis/Command/ServerEvalSHATest.php index bbda8efc..f73f9299 100644 --- a/tests/Predis/Command/ServerEvalSHATest.php +++ b/tests/Predis/Command/ServerEvalSHATest.php @@ -83,7 +83,7 @@ class ServerEvalSHATest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException */ public function testThrowsExceptionOnWrongNumberOfKeys() { @@ -98,7 +98,7 @@ class ServerEvalSHATest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException */ public function testThrowsExceptionOnInvalidScript() { diff --git a/tests/Predis/Command/ServerEvalTest.php b/tests/Predis/Command/ServerEvalTest.php index f505ff68..8579e0ea 100644 --- a/tests/Predis/Command/ServerEvalTest.php +++ b/tests/Predis/Command/ServerEvalTest.php @@ -81,7 +81,7 @@ class ServerEvalTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException */ public function testThrowsExceptionOnWrongNumberOfKeys() { @@ -93,7 +93,7 @@ class ServerEvalTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException */ public function testThrowsExceptionOnInvalidScript() { diff --git a/tests/Predis/Command/ServerObjectTest.php b/tests/Predis/Command/ServerObjectTest.php index 58ed8f63..1cd2d08d 100644 --- a/tests/Predis/Command/ServerObjectTest.php +++ b/tests/Predis/Command/ServerObjectTest.php @@ -102,7 +102,7 @@ class ServerObjectTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException */ public function testThrowsExceptionOnInvalidSubcommand() { diff --git a/tests/Predis/Command/ServerScriptTest.php b/tests/Predis/Command/ServerScriptTest.php index 920b6796..4ab98fc9 100644 --- a/tests/Predis/Command/ServerScriptTest.php +++ b/tests/Predis/Command/ServerScriptTest.php @@ -97,7 +97,7 @@ class ServerScriptTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException */ public function testThrowsExceptionOnInvalidSubcommand() { diff --git a/tests/Predis/Command/ServerSlowlogTest.php b/tests/Predis/Command/ServerSlowlogTest.php index 92fe8c9e..a506802a 100644 --- a/tests/Predis/Command/ServerSlowlogTest.php +++ b/tests/Predis/Command/ServerSlowlogTest.php @@ -107,7 +107,7 @@ class ServerSlowlogTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException */ public function testThrowsExceptionOnInvalidSubcommand() { diff --git a/tests/Predis/Command/SetAddTest.php b/tests/Predis/Command/SetAddTest.php index 340c7e8d..eea81160 100644 --- a/tests/Predis/Command/SetAddTest.php +++ b/tests/Predis/Command/SetAddTest.php @@ -83,7 +83,7 @@ class SetAddTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/SetCardinalityTest.php b/tests/Predis/Command/SetCardinalityTest.php index 72a0e35b..840ea248 100644 --- a/tests/Predis/Command/SetCardinalityTest.php +++ b/tests/Predis/Command/SetCardinalityTest.php @@ -79,7 +79,7 @@ class SetCardinalityTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/SetDifferenceStoreTest.php b/tests/Predis/Command/SetDifferenceStoreTest.php index d8756a71..55de06bb 100644 --- a/tests/Predis/Command/SetDifferenceStoreTest.php +++ b/tests/Predis/Command/SetDifferenceStoreTest.php @@ -102,7 +102,7 @@ class SetDifferenceStoreTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongTypeOfSourceKey() diff --git a/tests/Predis/Command/SetDifferenceTest.php b/tests/Predis/Command/SetDifferenceTest.php index a7617953..a2d883d0 100644 --- a/tests/Predis/Command/SetDifferenceTest.php +++ b/tests/Predis/Command/SetDifferenceTest.php @@ -104,7 +104,7 @@ class SetDifferenceTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/SetIntersectionStoreTest.php b/tests/Predis/Command/SetIntersectionStoreTest.php index 108f1c88..19de440f 100644 --- a/tests/Predis/Command/SetIntersectionStoreTest.php +++ b/tests/Predis/Command/SetIntersectionStoreTest.php @@ -115,7 +115,7 @@ class SetIntersectionStoreTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongTypeOfSourceKey() diff --git a/tests/Predis/Command/SetIntersectionTest.php b/tests/Predis/Command/SetIntersectionTest.php index 765fbf95..864e2b28 100644 --- a/tests/Predis/Command/SetIntersectionTest.php +++ b/tests/Predis/Command/SetIntersectionTest.php @@ -115,7 +115,7 @@ class SetIntersectionTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/SetIsMemberTest.php b/tests/Predis/Command/SetIsMemberTest.php index 7e296567..0a686384 100644 --- a/tests/Predis/Command/SetIsMemberTest.php +++ b/tests/Predis/Command/SetIsMemberTest.php @@ -83,7 +83,7 @@ class SetIsMemberTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/SetMembersTest.php b/tests/Predis/Command/SetMembersTest.php index f5bac241..8905821c 100644 --- a/tests/Predis/Command/SetMembersTest.php +++ b/tests/Predis/Command/SetMembersTest.php @@ -75,7 +75,7 @@ class SetMembersTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/SetMoveTest.php b/tests/Predis/Command/SetMoveTest.php index aff46fc3..561f7b2a 100644 --- a/tests/Predis/Command/SetMoveTest.php +++ b/tests/Predis/Command/SetMoveTest.php @@ -76,7 +76,7 @@ class SetMoveTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongTypeOfSourceKey() @@ -90,7 +90,7 @@ class SetMoveTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongTypeOfDestinationKey() diff --git a/tests/Predis/Command/SetPopTest.php b/tests/Predis/Command/SetPopTest.php index 3a4f460c..bb337a02 100644 --- a/tests/Predis/Command/SetPopTest.php +++ b/tests/Predis/Command/SetPopTest.php @@ -72,7 +72,7 @@ class SetPopTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/SetRandomMemberTest.php b/tests/Predis/Command/SetRandomMemberTest.php index fec42e18..240238cc 100644 --- a/tests/Predis/Command/SetRandomMemberTest.php +++ b/tests/Predis/Command/SetRandomMemberTest.php @@ -80,7 +80,7 @@ class SetRandomMemberTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/SetRemoveTest.php b/tests/Predis/Command/SetRemoveTest.php index 2b90db43..1bc9081d 100644 --- a/tests/Predis/Command/SetRemoveTest.php +++ b/tests/Predis/Command/SetRemoveTest.php @@ -87,7 +87,7 @@ class SetRemoveTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/SetUnionStoreTest.php b/tests/Predis/Command/SetUnionStoreTest.php index 8f3aeb4c..f5bdd065 100644 --- a/tests/Predis/Command/SetUnionStoreTest.php +++ b/tests/Predis/Command/SetUnionStoreTest.php @@ -102,7 +102,7 @@ class SetUnionStoreTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongTypeOfSourceKey() diff --git a/tests/Predis/Command/SetUnionTest.php b/tests/Predis/Command/SetUnionTest.php index cb181e89..1aa12c3f 100644 --- a/tests/Predis/Command/SetUnionTest.php +++ b/tests/Predis/Command/SetUnionTest.php @@ -104,7 +104,7 @@ class SetUnionTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/StringAppendTest.php b/tests/Predis/Command/StringAppendTest.php index aaa958b8..bb846b42 100644 --- a/tests/Predis/Command/StringAppendTest.php +++ b/tests/Predis/Command/StringAppendTest.php @@ -82,7 +82,7 @@ class StringAppendTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/StringBitCountTest.php b/tests/Predis/Command/StringBitCountTest.php index d84c242c..00780ed6 100644 --- a/tests/Predis/Command/StringBitCountTest.php +++ b/tests/Predis/Command/StringBitCountTest.php @@ -79,7 +79,7 @@ class StringBitCountTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/StringBitOpTest.php b/tests/Predis/Command/StringBitOpTest.php index db0ae521..bcb75def 100644 --- a/tests/Predis/Command/StringBitOpTest.php +++ b/tests/Predis/Command/StringBitOpTest.php @@ -131,7 +131,7 @@ class StringBitOpTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR BITOP NOT must be called with a single source key. */ public function testBitwiseNOTAcceptsOnlyOneSourceKey() @@ -141,7 +141,7 @@ class StringBitOpTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR syntax error */ public function testThrowsExceptionOnInvalidOperation() @@ -151,7 +151,7 @@ class StringBitOpTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnInvalidSourceKey() diff --git a/tests/Predis/Command/StringDecrementByTest.php b/tests/Predis/Command/StringDecrementByTest.php index 97c0b0a0..4e69de02 100644 --- a/tests/Predis/Command/StringDecrementByTest.php +++ b/tests/Predis/Command/StringDecrementByTest.php @@ -82,7 +82,7 @@ class StringDecrementByTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR value is not an integer or out of range */ public function testThrowsExceptionOnDecrementValueNotInteger() @@ -94,7 +94,7 @@ class StringDecrementByTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR value is not an integer or out of range */ public function testThrowsExceptionOnKeyValueNotInteger() @@ -107,7 +107,7 @@ class StringDecrementByTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/StringDecrementTest.php b/tests/Predis/Command/StringDecrementTest.php index 623e015c..06a8b430 100644 --- a/tests/Predis/Command/StringDecrementTest.php +++ b/tests/Predis/Command/StringDecrementTest.php @@ -81,7 +81,7 @@ class StringDecrementTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR value is not an integer or out of range */ public function testThrowsExceptionOnKeyValueNotInteger() @@ -94,7 +94,7 @@ class StringDecrementTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/StringGetBitTest.php b/tests/Predis/Command/StringGetBitTest.php index 786f580f..64a85f16 100644 --- a/tests/Predis/Command/StringGetBitTest.php +++ b/tests/Predis/Command/StringGetBitTest.php @@ -74,7 +74,7 @@ class StringGetBitTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR bit offset is not an integer or out of range */ public function testThrowsExceptionOnNegativeOffset() @@ -87,7 +87,7 @@ class StringGetBitTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR bit offset is not an integer or out of range */ public function testThrowsExceptionOnInvalidOffset() @@ -100,7 +100,7 @@ class StringGetBitTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/StringGetRangeTest.php b/tests/Predis/Command/StringGetRangeTest.php index 2dae10c1..d8bf572a 100644 --- a/tests/Predis/Command/StringGetRangeTest.php +++ b/tests/Predis/Command/StringGetRangeTest.php @@ -85,7 +85,7 @@ class StringGetRangeTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/StringGetSetTest.php b/tests/Predis/Command/StringGetSetTest.php index a472c802..defe243a 100644 --- a/tests/Predis/Command/StringGetSetTest.php +++ b/tests/Predis/Command/StringGetSetTest.php @@ -71,7 +71,7 @@ class StringGetSetTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/StringGetTest.php b/tests/Predis/Command/StringGetTest.php index e132b09a..c64fd507 100644 --- a/tests/Predis/Command/StringGetTest.php +++ b/tests/Predis/Command/StringGetTest.php @@ -92,7 +92,7 @@ class StringGetTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/StringIncrementByFloatTest.php b/tests/Predis/Command/StringIncrementByFloatTest.php index 1c2e0314..f0bcf82f 100644 --- a/tests/Predis/Command/StringIncrementByFloatTest.php +++ b/tests/Predis/Command/StringIncrementByFloatTest.php @@ -82,7 +82,7 @@ class StringIncrementByFloatTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR value is not a valid float */ public function testThrowsExceptionOnDecrementValueNotFloat() @@ -94,7 +94,7 @@ class StringIncrementByFloatTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR value is not a valid float */ public function testThrowsExceptionOnKeyValueNotFloat() @@ -107,7 +107,7 @@ class StringIncrementByFloatTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/StringIncrementByTest.php b/tests/Predis/Command/StringIncrementByTest.php index 12c51a0c..78a156fc 100644 --- a/tests/Predis/Command/StringIncrementByTest.php +++ b/tests/Predis/Command/StringIncrementByTest.php @@ -82,7 +82,7 @@ class StringIncrementByTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR value is not an integer or out of range */ public function testThrowsExceptionOnDecrementValueNotInteger() @@ -94,7 +94,7 @@ class StringIncrementByTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR value is not an integer or out of range */ public function testThrowsExceptionOnKeyValueNotInteger() @@ -107,7 +107,7 @@ class StringIncrementByTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/StringIncrementTest.php b/tests/Predis/Command/StringIncrementTest.php index 2a6a959f..8a87c132 100644 --- a/tests/Predis/Command/StringIncrementTest.php +++ b/tests/Predis/Command/StringIncrementTest.php @@ -81,7 +81,7 @@ class StringIncrementTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/StringPreciseSetExpireTest.php b/tests/Predis/Command/StringPreciseSetExpireTest.php index e1cdc81c..77df02cb 100644 --- a/tests/Predis/Command/StringPreciseSetExpireTest.php +++ b/tests/Predis/Command/StringPreciseSetExpireTest.php @@ -82,7 +82,7 @@ class StringPreciseSetExpireTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR value is not an integer or out of range */ public function testThrowsExceptionOnNonIntegerTTL() @@ -92,7 +92,7 @@ class StringPreciseSetExpireTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR invalid expire time in SETEX * @todo Should not Redis return PSETEX instead of SETEX here? */ @@ -103,7 +103,7 @@ class StringPreciseSetExpireTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR invalid expire time in SETEX * @todo Should not Redis return PSETEX instead of SETEX here? */ diff --git a/tests/Predis/Command/StringSetBitTest.php b/tests/Predis/Command/StringSetBitTest.php index b1df2feb..7ed51433 100644 --- a/tests/Predis/Command/StringSetBitTest.php +++ b/tests/Predis/Command/StringSetBitTest.php @@ -86,7 +86,7 @@ class StringSetBitTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR bit is not an integer or out of range */ public function testThrowsExceptionOnInvalidBitValue() @@ -96,7 +96,7 @@ class StringSetBitTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR bit offset is not an integer or out of range */ public function testThrowsExceptionOnNegativeOffset() @@ -106,7 +106,7 @@ class StringSetBitTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR bit offset is not an integer or out of range */ public function testThrowsExceptionOnInvalidOffset() @@ -116,7 +116,7 @@ class StringSetBitTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/StringSetExpireTest.php b/tests/Predis/Command/StringSetExpireTest.php index 7eb5f4ce..59ff77bf 100644 --- a/tests/Predis/Command/StringSetExpireTest.php +++ b/tests/Predis/Command/StringSetExpireTest.php @@ -83,7 +83,7 @@ class StringSetExpireTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR value is not an integer or out of range */ public function testThrowsExceptionOnNonIntegerTTL() @@ -93,7 +93,7 @@ class StringSetExpireTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR invalid expire time in SETEX */ public function testThrowsExceptionOnZeroTTL() @@ -103,7 +103,7 @@ class StringSetExpireTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR invalid expire time in SETEX */ public function testThrowsExceptionOnNegativeTTL() diff --git a/tests/Predis/Command/StringSetRangeTest.php b/tests/Predis/Command/StringSetRangeTest.php index c9f8363c..e76a268d 100644 --- a/tests/Predis/Command/StringSetRangeTest.php +++ b/tests/Predis/Command/StringSetRangeTest.php @@ -100,7 +100,7 @@ class StringSetRangeTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR offset is out of range */ public function testThrowsExceptionOnInvalidOffset() @@ -110,7 +110,7 @@ class StringSetRangeTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/StringStrlenTest.php b/tests/Predis/Command/StringStrlenTest.php index b617e3cb..7c5c0fe0 100644 --- a/tests/Predis/Command/StringStrlenTest.php +++ b/tests/Predis/Command/StringStrlenTest.php @@ -81,7 +81,7 @@ class StringStrlenTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/TransactionDiscardTest.php b/tests/Predis/Command/TransactionDiscardTest.php index 17013b41..ab89b5c9 100644 --- a/tests/Predis/Command/TransactionDiscardTest.php +++ b/tests/Predis/Command/TransactionDiscardTest.php @@ -68,7 +68,7 @@ class TransactionDiscardTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR DISCARD without MULTI */ public function testThrowsExceptionWhenCallingOutsideTransaction() diff --git a/tests/Predis/Command/TransactionExecTest.php b/tests/Predis/Command/TransactionExecTest.php index bb187f2f..09b3c2e1 100644 --- a/tests/Predis/Command/TransactionExecTest.php +++ b/tests/Predis/Command/TransactionExecTest.php @@ -100,7 +100,7 @@ class TransactionExecTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR EXEC without MULTI */ public function testThrowsExceptionWhenCallingOutsideTransaction() diff --git a/tests/Predis/Command/TransactionMultiTest.php b/tests/Predis/Command/TransactionMultiTest.php index ecf414e9..db075181 100644 --- a/tests/Predis/Command/TransactionMultiTest.php +++ b/tests/Predis/Command/TransactionMultiTest.php @@ -78,7 +78,7 @@ class TransactionMultiTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR MULTI calls can not be nested */ public function testThrowsExceptionWhenCallingMultiInsideTransaction() diff --git a/tests/Predis/Command/TransactionWatchTest.php b/tests/Predis/Command/TransactionWatchTest.php index 23dd1609..132d11ae 100644 --- a/tests/Predis/Command/TransactionWatchTest.php +++ b/tests/Predis/Command/TransactionWatchTest.php @@ -105,7 +105,7 @@ class TransactionWatchTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR WATCH inside MULTI is not allowed */ public function testThrowsExceptionWhenCallingInsideTransaction() diff --git a/tests/Predis/Command/ZSetAddTest.php b/tests/Predis/Command/ZSetAddTest.php index 7001c2b5..3c2f4b16 100644 --- a/tests/Predis/Command/ZSetAddTest.php +++ b/tests/Predis/Command/ZSetAddTest.php @@ -96,7 +96,7 @@ class ZSetAddTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetCardinalityTest.php b/tests/Predis/Command/ZSetCardinalityTest.php index ddf8b32c..ea6e8a00 100644 --- a/tests/Predis/Command/ZSetCardinalityTest.php +++ b/tests/Predis/Command/ZSetCardinalityTest.php @@ -70,7 +70,7 @@ class ZSetCardinalityTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetCountTest.php b/tests/Predis/Command/ZSetCountTest.php index 143b3575..fc5b0f32 100644 --- a/tests/Predis/Command/ZSetCountTest.php +++ b/tests/Predis/Command/ZSetCountTest.php @@ -103,7 +103,7 @@ class ZSetCountTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetIncrementByTest.php b/tests/Predis/Command/ZSetIncrementByTest.php index 1f8855ce..ee45af7d 100644 --- a/tests/Predis/Command/ZSetIncrementByTest.php +++ b/tests/Predis/Command/ZSetIncrementByTest.php @@ -70,7 +70,7 @@ class ZSetIncrementByTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetIntersectionStoreTest.php b/tests/Predis/Command/ZSetIntersectionStoreTest.php index 07ababbb..430a40c6 100644 --- a/tests/Predis/Command/ZSetIntersectionStoreTest.php +++ b/tests/Predis/Command/ZSetIntersectionStoreTest.php @@ -156,7 +156,7 @@ class ZSetIntersectionStoreTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetLexCountTest.php b/tests/Predis/Command/ZSetLexCountTest.php index a1322a71..6acba8ac 100644 --- a/tests/Predis/Command/ZSetLexCountTest.php +++ b/tests/Predis/Command/ZSetLexCountTest.php @@ -104,7 +104,7 @@ class ZSetLexCountTest extends PredisCommandTestCase /** * @group connected * @requiresRedisVersion >= 2.8.9 - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage min or max not valid string range item */ public function testThrowsExceptionOnInvalidRangeFormat() @@ -118,7 +118,7 @@ class ZSetLexCountTest extends PredisCommandTestCase /** * @group connected * @requiresRedisVersion >= 2.8.9 - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetRangeByLexTest.php b/tests/Predis/Command/ZSetRangeByLexTest.php index 9f602728..3c7ebf02 100644 --- a/tests/Predis/Command/ZSetRangeByLexTest.php +++ b/tests/Predis/Command/ZSetRangeByLexTest.php @@ -167,7 +167,7 @@ class ZSetRangeByLexTest extends PredisCommandTestCase /** * @group connected * @requiresRedisVersion >= 2.8.9 - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage min or max not valid string range item */ public function testThrowsExceptionOnInvalidRangeFormat() @@ -181,7 +181,7 @@ class ZSetRangeByLexTest extends PredisCommandTestCase /** * @group connected * @requiresRedisVersion >= 2.8.9 - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetRangeByScoreTest.php b/tests/Predis/Command/ZSetRangeByScoreTest.php index 2f61d79c..08e5a193 100644 --- a/tests/Predis/Command/ZSetRangeByScoreTest.php +++ b/tests/Predis/Command/ZSetRangeByScoreTest.php @@ -214,7 +214,7 @@ class ZSetRangeByScoreTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetRangeTest.php b/tests/Predis/Command/ZSetRangeTest.php index 7eac6c39..2ae484dc 100644 --- a/tests/Predis/Command/ZSetRangeTest.php +++ b/tests/Predis/Command/ZSetRangeTest.php @@ -142,7 +142,7 @@ class ZSetRangeTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetRankTest.php b/tests/Predis/Command/ZSetRankTest.php index 1e599f40..2ab26710 100644 --- a/tests/Predis/Command/ZSetRankTest.php +++ b/tests/Predis/Command/ZSetRankTest.php @@ -73,7 +73,7 @@ class ZSetRankTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetRemoveRangeByLexTest.php b/tests/Predis/Command/ZSetRemoveRangeByLexTest.php index 9ffd8732..a310f466 100644 --- a/tests/Predis/Command/ZSetRemoveRangeByLexTest.php +++ b/tests/Predis/Command/ZSetRemoveRangeByLexTest.php @@ -116,7 +116,7 @@ class ZSetRemoveRangeByLexTest extends PredisCommandTestCase /** * @group connected * @requiresRedisVersion >= 2.8.9 - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage min or max not valid string range item */ public function testThrowsExceptionOnInvalidRangeFormat() @@ -130,7 +130,7 @@ class ZSetRemoveRangeByLexTest extends PredisCommandTestCase /** * @group connected * @requiresRedisVersion >= 2.8.9 - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetRemoveRangeByRankTest.php b/tests/Predis/Command/ZSetRemoveRangeByRankTest.php index 2c1a4cb4..9ab3df45 100644 --- a/tests/Predis/Command/ZSetRemoveRangeByRankTest.php +++ b/tests/Predis/Command/ZSetRemoveRangeByRankTest.php @@ -85,7 +85,7 @@ class ZSetRemoveRangeByRankTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetRemoveRangeByScoreTest.php b/tests/Predis/Command/ZSetRemoveRangeByScoreTest.php index c097bac1..f38900b6 100644 --- a/tests/Predis/Command/ZSetRemoveRangeByScoreTest.php +++ b/tests/Predis/Command/ZSetRemoveRangeByScoreTest.php @@ -85,7 +85,7 @@ class ZSetRemoveRangeByScoreTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetRemoveTest.php b/tests/Predis/Command/ZSetRemoveTest.php index 6f87d462..1044be31 100644 --- a/tests/Predis/Command/ZSetRemoveTest.php +++ b/tests/Predis/Command/ZSetRemoveTest.php @@ -72,7 +72,7 @@ class ZSetRemoveTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetReverseRangeByScoreTest.php b/tests/Predis/Command/ZSetReverseRangeByScoreTest.php index 6666978b..6eb7cf70 100644 --- a/tests/Predis/Command/ZSetReverseRangeByScoreTest.php +++ b/tests/Predis/Command/ZSetReverseRangeByScoreTest.php @@ -214,7 +214,7 @@ class ZSetReverseRangeByScoreTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetReverseRangeTest.php b/tests/Predis/Command/ZSetReverseRangeTest.php index 0d3b7306..50c2e5ae 100644 --- a/tests/Predis/Command/ZSetReverseRangeTest.php +++ b/tests/Predis/Command/ZSetReverseRangeTest.php @@ -142,7 +142,7 @@ class ZSetReverseRangeTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetReverseRankTest.php b/tests/Predis/Command/ZSetReverseRankTest.php index b26dd0b9..9f9865b4 100644 --- a/tests/Predis/Command/ZSetReverseRankTest.php +++ b/tests/Predis/Command/ZSetReverseRankTest.php @@ -73,7 +73,7 @@ class ZSetReverseRankTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetScoreTest.php b/tests/Predis/Command/ZSetScoreTest.php index ee87a027..dc26dbff 100644 --- a/tests/Predis/Command/ZSetScoreTest.php +++ b/tests/Predis/Command/ZSetScoreTest.php @@ -73,7 +73,7 @@ class ZSetScoreTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/Command/ZSetUnionStoreTest.php b/tests/Predis/Command/ZSetUnionStoreTest.php index 6861e028..a250f4f7 100644 --- a/tests/Predis/Command/ZSetUnionStoreTest.php +++ b/tests/Predis/Command/ZSetUnionStoreTest.php @@ -174,7 +174,7 @@ class ZSetUnionStoreTest extends PredisCommandTestCase /** * @group connected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() diff --git a/tests/Predis/CommunicationExceptionTest.php b/tests/Predis/CommunicationExceptionTest.php index b7a4c6f9..0ceedb8f 100644 --- a/tests/Predis/CommunicationExceptionTest.php +++ b/tests/Predis/CommunicationExceptionTest.php @@ -56,7 +56,7 @@ class CommunicationExceptionTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\CommunicationException + * @expectedException \Predis\CommunicationException * @expectedExceptionMessage Communication error */ public function testCommunicationExceptionHandling() diff --git a/tests/Predis/Configuration/ProfileOptionTest.php b/tests/Predis/Configuration/ProfileOptionTest.php index 559287d6..c2e10f75 100644 --- a/tests/Predis/Configuration/ProfileOptionTest.php +++ b/tests/Predis/Configuration/ProfileOptionTest.php @@ -152,7 +152,7 @@ class ProfileOptionTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\ClientException + * @expectedException \Predis\ClientException */ public function testThrowsExceptionOnUnrecognizedVersionString() { diff --git a/tests/Predis/Connection/Aggregate/MasterSlaveReplicationTest.php b/tests/Predis/Connection/Aggregate/MasterSlaveReplicationTest.php index ff8ad53e..22a87f0d 100644 --- a/tests/Predis/Connection/Aggregate/MasterSlaveReplicationTest.php +++ b/tests/Predis/Connection/Aggregate/MasterSlaveReplicationTest.php @@ -435,7 +435,7 @@ class MasterSlaveReplicationTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage The command 'INFO' is not allowed in replication mode. */ public function testThrowsExceptionOnNonSupportedCommand() diff --git a/tests/Predis/Connection/Aggregate/PredisClusterTest.php b/tests/Predis/Connection/Aggregate/PredisClusterTest.php index 092e2968..8286e4e2 100644 --- a/tests/Predis/Connection/Aggregate/PredisClusterTest.php +++ b/tests/Predis/Connection/Aggregate/PredisClusterTest.php @@ -256,7 +256,7 @@ class PredisClusterTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage Cannot use 'PING' over clusters of connections. */ public function testThrowsExceptionOnNonShardableCommand() diff --git a/tests/Predis/Connection/Aggregate/RedisClusterTest.php b/tests/Predis/Connection/Aggregate/RedisClusterTest.php index be02360a..8cc3d043 100644 --- a/tests/Predis/Connection/Aggregate/RedisClusterTest.php +++ b/tests/Predis/Connection/Aggregate/RedisClusterTest.php @@ -717,7 +717,7 @@ class RedisClusterTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage Cannot use 'PING' with redis-cluster. */ public function testThrowsExceptionOnNonSupportedCommand() diff --git a/tests/Predis/Connection/CompositeStreamConnectionTest.php b/tests/Predis/Connection/CompositeStreamConnectionTest.php index 4c8f4786..547b4347 100644 --- a/tests/Predis/Connection/CompositeStreamConnectionTest.php +++ b/tests/Predis/Connection/CompositeStreamConnectionTest.php @@ -82,7 +82,7 @@ class CompositeStreamConnectionTest extends PredisConnectionTestCase /** * @group connected - * @expectedException Predis\Protocol\ProtocolException + * @expectedException \Predis\Protocol\ProtocolException * @expectedExceptionMessage Unknown response prefix: 'P'. */ public function testThrowsExceptionOnProtocolDesynchronizationErrors() diff --git a/tests/Predis/Connection/PhpiredisSocketConnectionTest.php b/tests/Predis/Connection/PhpiredisSocketConnectionTest.php index acf33bdc..d39e6aaa 100644 --- a/tests/Predis/Connection/PhpiredisSocketConnectionTest.php +++ b/tests/Predis/Connection/PhpiredisSocketConnectionTest.php @@ -88,7 +88,7 @@ class PhpiredisSocketConnectionTest extends PredisConnectionTestCase /** * @group connected - * @expectedException Predis\Connection\ConnectionException + * @expectedException \Predis\Connection\ConnectionException * @expectedExceptionMessage Cannot resolve the address of 'bogus.tld'. */ public function testThrowsExceptionOnUnresolvableHostname() @@ -100,7 +100,7 @@ class PhpiredisSocketConnectionTest extends PredisConnectionTestCase /** * @group connected - * @expectedException Predis\Protocol\ProtocolException + * @expectedException \Predis\Protocol\ProtocolException * @expectedExceptionMessage Protocol error, got "P" as reply type byte */ public function testThrowsExceptionOnProtocolDesynchronizationErrors() diff --git a/tests/Predis/Connection/PhpiredisStreamConnectionTest.php b/tests/Predis/Connection/PhpiredisStreamConnectionTest.php index 3a0d99d7..a3f55036 100644 --- a/tests/Predis/Connection/PhpiredisStreamConnectionTest.php +++ b/tests/Predis/Connection/PhpiredisStreamConnectionTest.php @@ -107,7 +107,7 @@ class PhpiredisStreamConnectionTest extends PredisConnectionTestCase /** * @medium * @group connected - * @expectedException Predis\Protocol\ProtocolException + * @expectedException \Predis\Protocol\ProtocolException * @expectedExceptionMessage Protocol error, got "P" as reply type byte */ public function testThrowsExceptionOnProtocolDesynchronizationErrors() diff --git a/tests/Predis/Connection/StreamConnectionTest.php b/tests/Predis/Connection/StreamConnectionTest.php index 68bbf501..ca9f5d87 100644 --- a/tests/Predis/Connection/StreamConnectionTest.php +++ b/tests/Predis/Connection/StreamConnectionTest.php @@ -85,7 +85,7 @@ class StreamConnectionTest extends PredisConnectionTestCase /** * @group connected - * @expectedException Predis\Protocol\ProtocolException + * @expectedException \Predis\Protocol\ProtocolException * @expectedExceptionMessage Unknown response prefix: 'P'. */ public function testThrowsExceptionOnProtocolDesynchronizationErrors() diff --git a/tests/Predis/Connection/WebdisConnectionTest.php b/tests/Predis/Connection/WebdisConnectionTest.php index 7cec786d..4253aaef 100644 --- a/tests/Predis/Connection/WebdisConnectionTest.php +++ b/tests/Predis/Connection/WebdisConnectionTest.php @@ -34,7 +34,7 @@ class WebdisConnectionTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage The method Predis\Connection\WebdisConnection::writeRequest() is not supported. */ public function testWritingCommandsIsNotSupported() @@ -45,7 +45,7 @@ class WebdisConnectionTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage The method Predis\Connection\WebdisConnection::readResponse() is not supported */ public function testReadingResponsesIsNotSupported() @@ -56,7 +56,7 @@ class WebdisConnectionTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage The method Predis\Connection\WebdisConnection::read() is not supported. */ public function testReadingFromConnectionIsNotSupported() @@ -67,7 +67,7 @@ class WebdisConnectionTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage The method Predis\Connection\WebdisConnection::addConnectCommand() is not supported. * */ @@ -79,7 +79,7 @@ class WebdisConnectionTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage Command 'SELECT' is not allowed by Webdis. */ public function testRejectCommandSelect() @@ -90,7 +90,7 @@ class WebdisConnectionTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage Command 'AUTH' is not allowed by Webdis. */ public function testRejectCommandAuth() @@ -141,7 +141,7 @@ class WebdisConnectionTest extends PredisTestCase * @medium * @group disconnected * @group slow - * @expectedException Predis\Connection\ConnectionException + * @expectedException \Predis\Connection\ConnectionException */ public function testThrowExceptionWhenUnableToConnect() { diff --git a/tests/Predis/Monitor/ConsumerTest.php b/tests/Predis/Monitor/ConsumerTest.php index 68c1242a..003f7846 100644 --- a/tests/Predis/Monitor/ConsumerTest.php +++ b/tests/Predis/Monitor/ConsumerTest.php @@ -23,7 +23,7 @@ class ConsumerTest extends PredisTestCase { /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage The current profile does not support 'MONITOR'. */ public function testMonitorConsumerRequireMonitorCommand() @@ -40,7 +40,7 @@ class ConsumerTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage Cannot initialize a monitor consumer over aggregate connections. */ public function testMonitorConsumerDoesNotWorkOnClusters() diff --git a/tests/Predis/Pipeline/AtomicTest.php b/tests/Predis/Pipeline/AtomicTest.php index 8e32b40e..a93f8bb6 100644 --- a/tests/Predis/Pipeline/AtomicTest.php +++ b/tests/Predis/Pipeline/AtomicTest.php @@ -49,7 +49,7 @@ class AtomicTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\ClientException + * @expectedException \Predis\ClientException * @expectedExceptionMessage The underlying transaction has been aborted by the server. */ public function testThrowsExceptionOnAbortedTransaction() @@ -70,7 +70,7 @@ class AtomicTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR Test error */ public function testPipelineWithErrorInTransaction() @@ -100,7 +100,7 @@ class AtomicTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR Test error */ public function testThrowsServerExceptionOnResponseErrorByDefault() @@ -148,7 +148,7 @@ class AtomicTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\ClientException + * @expectedException \Predis\ClientException * @expectedExceptionMessage The class 'Predis\Pipeline\Atomic' does not support aggregate connections. */ public function testExecutorWithAggregateConnection() diff --git a/tests/Predis/Pipeline/PipelineTest.php b/tests/Predis/Pipeline/PipelineTest.php index 4a0ddfa4..548f510a 100644 --- a/tests/Predis/Pipeline/PipelineTest.php +++ b/tests/Predis/Pipeline/PipelineTest.php @@ -87,7 +87,7 @@ class PipelineTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR Test error */ public function testThrowsServerExceptionOnResponseErrorByDefault() @@ -292,7 +292,7 @@ class PipelineTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\ClientException + * @expectedException \Predis\ClientException */ public function testExecuteInsideCallableArgumentThrowsException() { diff --git a/tests/Predis/Profile/FactoryTest.php b/tests/Predis/Profile/FactoryTest.php index 741a1a38..1c2f2865 100644 --- a/tests/Predis/Profile/FactoryTest.php +++ b/tests/Predis/Profile/FactoryTest.php @@ -63,7 +63,7 @@ class FactoryTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\ClientException + * @expectedException \Predis\ClientException * @expectedExceptionMessage Unknown server profile: '1.0'. */ public function testGetUndefinedProfile() diff --git a/tests/Predis/Protocol/Text/Handler/BulkResponseTest.php b/tests/Predis/Protocol/Text/Handler/BulkResponseTest.php index 24766cf4..d7cc1ae3 100644 --- a/tests/Predis/Protocol/Text/Handler/BulkResponseTest.php +++ b/tests/Predis/Protocol/Text/Handler/BulkResponseTest.php @@ -74,7 +74,7 @@ class BulkResponseTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\Protocol\ProtocolException + * @expectedException \Predis\Protocol\ProtocolException * @expectedExceptionMessage Cannot parse 'invalid' as a valid length for a bulk response. */ public function testInvalidLength() diff --git a/tests/Predis/Protocol/Text/Handler/IntegerResponseTest.php b/tests/Predis/Protocol/Text/Handler/IntegerResponseTest.php index 4f1f5d6a..4aa16d53 100644 --- a/tests/Predis/Protocol/Text/Handler/IntegerResponseTest.php +++ b/tests/Predis/Protocol/Text/Handler/IntegerResponseTest.php @@ -53,7 +53,7 @@ class IntegerResponseTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\Protocol\ProtocolException + * @expectedException \Predis\Protocol\ProtocolException * @expectedExceptionMessage Cannot parse 'invalid' as a valid numeric response. */ public function testInvalid() diff --git a/tests/Predis/Protocol/Text/Handler/MultiBulkResponseTest.php b/tests/Predis/Protocol/Text/Handler/MultiBulkResponseTest.php index 8043aa11..781d0f19 100644 --- a/tests/Predis/Protocol/Text/Handler/MultiBulkResponseTest.php +++ b/tests/Predis/Protocol/Text/Handler/MultiBulkResponseTest.php @@ -67,7 +67,7 @@ class MultiBulkResponseTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\Protocol\ProtocolException + * @expectedException \Predis\Protocol\ProtocolException * @expectedExceptionMessage Cannot parse 'invalid' as a valid length of a multi-bulk response. */ public function testInvalid() diff --git a/tests/Predis/Protocol/Text/Handler/StreamableMultiBulkResponseTest.php b/tests/Predis/Protocol/Text/Handler/StreamableMultiBulkResponseTest.php index 62bb9fa7..3f349f80 100644 --- a/tests/Predis/Protocol/Text/Handler/StreamableMultiBulkResponseTest.php +++ b/tests/Predis/Protocol/Text/Handler/StreamableMultiBulkResponseTest.php @@ -35,7 +35,7 @@ class StreamableMultiBulkResponseTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\Protocol\ProtocolException + * @expectedException \Predis\Protocol\ProtocolException * @expectedExceptionMessage Cannot parse 'invalid' as a valid length for a multi-bulk response. */ public function testInvalid() diff --git a/tests/Predis/Protocol/Text/ProtocolProcessorTest.php b/tests/Predis/Protocol/Text/ProtocolProcessorTest.php index 4c04e538..7d3b3ce6 100644 --- a/tests/Predis/Protocol/Text/ProtocolProcessorTest.php +++ b/tests/Predis/Protocol/Text/ProtocolProcessorTest.php @@ -101,7 +101,7 @@ class ProtocolProcessorTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\Protocol\ProtocolException + * @expectedException \Predis\Protocol\ProtocolException * @expectedExceptionMessage Unknown response prefix: '!'. */ public function testUnknownResponsePrefix() diff --git a/tests/Predis/Protocol/Text/ResponseReaderTest.php b/tests/Predis/Protocol/Text/ResponseReaderTest.php index 597534ec..7c31f177 100644 --- a/tests/Predis/Protocol/Text/ResponseReaderTest.php +++ b/tests/Predis/Protocol/Text/ResponseReaderTest.php @@ -88,7 +88,7 @@ class ResponseReaderTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\Protocol\ProtocolException + * @expectedException \Predis\Protocol\ProtocolException * @expectedExceptionMessage Unexpected empty reponse header. */ public function testEmptyResponseHeader() @@ -105,7 +105,7 @@ class ResponseReaderTest extends PredisTestCase } /** * @group disconnected - * @expectedException Predis\Protocol\ProtocolException + * @expectedException \Predis\Protocol\ProtocolException * @expectedExceptionMessage Unknown response prefix: '!'. */ public function testUnknownResponsePrefix() diff --git a/tests/Predis/PubSub/ConsumerTest.php b/tests/Predis/PubSub/ConsumerTest.php index 89b7d732..be592b7f 100644 --- a/tests/Predis/PubSub/ConsumerTest.php +++ b/tests/Predis/PubSub/ConsumerTest.php @@ -23,7 +23,7 @@ class ConsumerTest extends PredisTestCase { /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage The current profile does not support PUB/SUB related commands. */ public function testPubSubConsumerRequirePubSubRelatedCommand() @@ -39,7 +39,7 @@ class ConsumerTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage Cannot initialize a PUB/SUB consumer over aggregate connections. */ public function testPubSubConsumerDoesNotWorkOnClusters() diff --git a/tests/Predis/Replication/ReplicationStrategyTest.php b/tests/Predis/Replication/ReplicationStrategyTest.php index 4248380d..9caad628 100644 --- a/tests/Predis/Replication/ReplicationStrategyTest.php +++ b/tests/Predis/Replication/ReplicationStrategyTest.php @@ -78,7 +78,7 @@ class ReplicationStrategyTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage The command 'INFO' is not allowed in replication mode. */ public function testUsingDisallowedCommandThrowsException() diff --git a/tests/Predis/Transaction/MultiExecTest.php b/tests/Predis/Transaction/MultiExecTest.php index 62fc9dd4..99ea3958 100644 --- a/tests/Predis/Transaction/MultiExecTest.php +++ b/tests/Predis/Transaction/MultiExecTest.php @@ -23,7 +23,7 @@ class MultiExecTest extends PredisTestCase { /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage The current profile does not support MULTI, EXEC and DISCARD. */ public function testThrowsExceptionOnUnsupportedMultiExecInProfile() @@ -42,7 +42,7 @@ class MultiExecTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage WATCH is not supported by the current profile. */ public function testThrowsExceptionOnUnsupportedWatchInProfile() @@ -66,7 +66,7 @@ class MultiExecTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\NotSupportedException + * @expectedException \Predis\NotSupportedException * @expectedExceptionMessage UNWATCH is not supported by the current profile. */ public function testThrowsExceptionOnUnsupportedUnwatchInProfile() @@ -169,7 +169,7 @@ class MultiExecTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\ClientException + * @expectedException \Predis\ClientException * @expectedExceptionMessage Cannot invoke "execute" or "exec" inside an active transaction context. */ public function testThrowsExceptionOnExecInsideTransactionBlock() @@ -247,7 +247,7 @@ class MultiExecTest extends PredisTestCase } /** * @group disconnected - * @expectedException Predis\ClientException + * @expectedException \Predis\ClientException */ public function testThrowsExceptionOnWatchInsideMulti() { @@ -396,7 +396,7 @@ class MultiExecTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\ClientException + * @expectedException \Predis\ClientException * @expectedExceptionMessage Automatic retries are supported only when a callable block is provided. */ public function testThrowsExceptionOnAutomaticRetriesWithFluentInterface() @@ -443,7 +443,7 @@ class MultiExecTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\Transaction\AbortedMultiExecException + * @expectedException \Predis\Transaction\AbortedMultiExecException */ public function testThrowsExceptionOnServerSideTransactionAbort() { @@ -588,7 +588,7 @@ class MultiExecTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR simulated error */ public function testExceptionsOptionTakesPrecedenceOverClientOptionsWhenTrue() @@ -616,7 +616,7 @@ class MultiExecTest extends PredisTestCase /** * @group disconnected - * @expectedException Predis\Response\ServerException + * @expectedException \Predis\Response\ServerException * @expectedExceptionMessage ERR simulated failure on EXEC */ public function testExceptionsOptionDoesNotAffectTransactionControlCommands()