mirror of
https://github.com/predis/predis.git
synced 2026-08-30 20:21:31 +00:00
Update tests against Relay (#1537)
This commit is contained in:
committed by
GitHub
parent
3cc35471e6
commit
9b1c6d2c8f
@@ -156,7 +156,6 @@ abstract class PredisConnectionTestCase extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
public function testDisconnectForcesDisconnection(): void
|
||||
{
|
||||
@@ -183,7 +182,6 @@ abstract class PredisConnectionTestCase extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
public function testGetResourceForcesConnection(): void
|
||||
{
|
||||
@@ -265,7 +263,6 @@ abstract class PredisConnectionTestCase extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
public function testWritesCommandToServer(): void
|
||||
{
|
||||
@@ -287,7 +284,6 @@ abstract class PredisConnectionTestCase extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
public function testReadsCommandFromServer(): void
|
||||
{
|
||||
@@ -310,7 +306,6 @@ abstract class PredisConnectionTestCase extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
public function testIsAbleToWriteMultipleCommandsAndReadThemBackForPipelining(): void
|
||||
{
|
||||
@@ -377,7 +372,6 @@ abstract class PredisConnectionTestCase extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
public function testReadsStatusResponses(): void
|
||||
{
|
||||
@@ -398,7 +392,6 @@ abstract class PredisConnectionTestCase extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
public function testReadsBulkResponses(): void
|
||||
{
|
||||
@@ -416,7 +409,6 @@ abstract class PredisConnectionTestCase extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
public function testReadsIntegerResponses(): void
|
||||
{
|
||||
@@ -431,7 +423,6 @@ abstract class PredisConnectionTestCase extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
public function testReadsErrorResponsesAsResponseErrorObjects(): void
|
||||
{
|
||||
@@ -449,7 +440,6 @@ abstract class PredisConnectionTestCase extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
public function testReadsMultibulkResponsesAsArrays(): void
|
||||
{
|
||||
|
||||
@@ -90,7 +90,6 @@ class BFADD_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisBfVersion >= 1.0.0
|
||||
*/
|
||||
public function testThrowsExceptionOnWrongType(): void
|
||||
|
||||
@@ -90,7 +90,6 @@ class BFMADD_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisBfVersion >= 1.0.0
|
||||
*/
|
||||
public function testThrowsExceptionOnWrongType(): void
|
||||
|
||||
@@ -104,7 +104,6 @@ class CFRESERVE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisBfVersion >= 1.0.0
|
||||
*/
|
||||
public function testThrowsExceptionOnWrongType(): void
|
||||
|
||||
@@ -96,7 +96,6 @@ class CFSCANDUMP_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisBfVersion >= 1.0.0
|
||||
*/
|
||||
public function testThrowsExceptionOnWrongType(): void
|
||||
|
||||
@@ -18,7 +18,6 @@ use Predis\Consumer\Push\PushResponse;
|
||||
/**
|
||||
* @group commands
|
||||
* @group realm-pubsub
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
class PSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
{
|
||||
@@ -40,6 +39,7 @@ class PSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group disconnected
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
public function testFilterArguments(): void
|
||||
{
|
||||
@@ -98,6 +98,7 @@ class PSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testReturnsTheFirstPsubscribedChannelDetails(): void
|
||||
@@ -109,6 +110,7 @@ class PSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 6.0.0
|
||||
*/
|
||||
public function testReturnsTheFirstPsubscribedChannelDetailsResp3(): void
|
||||
@@ -121,6 +123,7 @@ class PSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testCanSendPsubscribeAfterPsubscribe(): void
|
||||
@@ -133,6 +136,7 @@ class PSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testCanSendSubscribeAfterPsubscribe(): void
|
||||
@@ -145,6 +149,7 @@ class PSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testCanSendUnsubscribeAfterPsubscribe(): void
|
||||
@@ -158,6 +163,7 @@ class PSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testCanSendPunsubscribeAfterPsubscribe(): void
|
||||
@@ -171,6 +177,7 @@ class PSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testCanSendQuitAfterPsubscribe(): void
|
||||
@@ -184,6 +191,7 @@ class PSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testCannotSendOtherCommandsAfterPsubscribe(): void
|
||||
|
||||
@@ -18,7 +18,6 @@ use Predis\Consumer\Push\PushResponse;
|
||||
/**
|
||||
* @group commands
|
||||
* @group realm-pubsub
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
class PUNSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
{
|
||||
@@ -98,6 +97,7 @@ class PUNSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testDoesNotSwitchToSubscribeMode(): void
|
||||
@@ -110,6 +110,7 @@ class PUNSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 6.0.0
|
||||
*/
|
||||
public function testDoesNotSwitchToSubscribeModeResp3(): void
|
||||
@@ -123,6 +124,7 @@ class PUNSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testUnsubscribesFromNotSubscribedChannels(): void
|
||||
@@ -134,6 +136,7 @@ class PUNSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testUnsubscribesFromSubscribedChannels(): void
|
||||
@@ -147,6 +150,7 @@ class PUNSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.6.0
|
||||
*/
|
||||
public function testUnsubscribesFromAllSubscribedChannels(): void
|
||||
|
||||
@@ -18,7 +18,6 @@ use Predis\Consumer\Push\PushResponse;
|
||||
/**
|
||||
* @group commands
|
||||
* @group realm-pubsub
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
class SUBSCRIBE_Test extends PredisCommandTestCase
|
||||
{
|
||||
@@ -98,6 +97,7 @@ class SUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testReturnsTheFirstSubscribedChannelDetails(): void
|
||||
@@ -109,6 +109,7 @@ class SUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 6.0.0
|
||||
*/
|
||||
public function testReturnsTheFirstSubscribedChannelDetailsResp3(): void
|
||||
@@ -121,6 +122,7 @@ class SUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testCanSendSubscribeAfterSubscribe(): void
|
||||
@@ -133,6 +135,7 @@ class SUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testCanSendPsubscribeAfterSubscribe(): void
|
||||
@@ -145,6 +148,7 @@ class SUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testCanSendUnsubscribeAfterSubscribe(): void
|
||||
@@ -158,6 +162,7 @@ class SUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testCanSendPunsubscribeAfterSubscribe(): void
|
||||
@@ -171,6 +176,7 @@ class SUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testCanSendQuitAfterSubscribe(): void
|
||||
@@ -184,6 +190,7 @@ class SUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testCannotSendOtherCommandsAfterSubscribe(): void
|
||||
|
||||
@@ -84,7 +84,6 @@ class FTSUGGET_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @return void
|
||||
* @requiresRediSearchVersion >= 1.0.0
|
||||
*/
|
||||
@@ -119,7 +118,6 @@ class FTSUGGET_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @return void
|
||||
* @requiresRediSearchVersion >= 1.0.0
|
||||
*/
|
||||
|
||||
@@ -109,7 +109,6 @@ class FTSYNDUMP_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @return void
|
||||
* @requiresRediSearchVersion >= 1.2.0
|
||||
*/
|
||||
|
||||
@@ -107,7 +107,6 @@ class TOPKLIST_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @return void
|
||||
* @requiresRedisBfVersion >= 2.0.0
|
||||
*/
|
||||
|
||||
@@ -92,7 +92,6 @@ class TOPKQUERY_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @return void
|
||||
* @requiresRedisBfVersion >= 2.0.0
|
||||
*/
|
||||
|
||||
@@ -104,7 +104,6 @@ class TOPKRESERVE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @return void
|
||||
* @requiresRedisBfVersion >= 2.0.0
|
||||
*/
|
||||
|
||||
@@ -18,7 +18,6 @@ use Predis\Consumer\Push\PushResponse;
|
||||
/**
|
||||
* @group commands
|
||||
* @group realm-pubsub
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
class UNSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
{
|
||||
@@ -98,6 +97,7 @@ class UNSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testDoesNotSwitchToSubscribeMode(): void
|
||||
@@ -110,6 +110,7 @@ class UNSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 6.0.0
|
||||
*/
|
||||
public function testDoesNotSwitchToSubscribeModeResp3(): void
|
||||
@@ -123,6 +124,7 @@ class UNSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testUnsubscribesFromNotSubscribedChannels(): void
|
||||
@@ -134,6 +136,7 @@ class UNSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testUnsubscribesFromSubscribedChannels(): void
|
||||
@@ -146,6 +149,7 @@ class UNSUBSCRIBE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
public function testUnsubscribesFromAllSubscribedChannels(): void
|
||||
|
||||
@@ -17,7 +17,6 @@ use Predis\Command\PrefixableCommand;
|
||||
/**
|
||||
* @group commands
|
||||
* @group realm-transaction
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
class WATCH_Test extends PredisCommandTestCase
|
||||
{
|
||||
@@ -92,6 +91,7 @@ class WATCH_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.2.0
|
||||
*/
|
||||
public function testAbortsTransactionOnExternalWriteOperations(): void
|
||||
@@ -111,6 +111,7 @@ class WATCH_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 6.0.0
|
||||
*/
|
||||
public function testAbortsTransactionOnExternalWriteOperationsResp3(): void
|
||||
@@ -130,6 +131,7 @@ class WATCH_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.2.0
|
||||
*/
|
||||
public function testWatchMultipleKeysAsListAbortsTransactionOnExternalWriteOperations(): void
|
||||
@@ -149,6 +151,7 @@ class WATCH_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @requiresRedisVersion >= 2.2.0
|
||||
*/
|
||||
public function testCanWatchNotYetExistingKeys(): void
|
||||
@@ -171,7 +174,7 @@ class WATCH_Test extends PredisCommandTestCase
|
||||
public function testThrowsExceptionWhenCallingInsideTransaction(): void
|
||||
{
|
||||
$this->expectException('Predis\Response\ServerException');
|
||||
$this->expectExceptionMessage('ERR WATCH inside MULTI is not allowed');
|
||||
$this->expectExceptionMessage('WATCH inside MULTI is not allowed');
|
||||
|
||||
$redis = $this->getClient();
|
||||
|
||||
|
||||
@@ -54,7 +54,6 @@ class XAUTOCLAIM_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 7.0.0
|
||||
*/
|
||||
|
||||
@@ -83,7 +83,6 @@ class XREAD_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
|
||||
@@ -127,7 +127,6 @@ class ZREVRANGE_Test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
public function testReturnsElementsInRange(): void
|
||||
{
|
||||
@@ -150,7 +149,6 @@ class ZREVRANGE_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @requiresRedisVersion >= 6.0.0
|
||||
* @group relay-incompatible
|
||||
*/
|
||||
public function testReturnsElementsInRangeResp3(): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user