From bf526cc1293412b34f6d146a82c573e1686a24fb Mon Sep 17 00:00:00 2001 From: vladvildanov Date: Mon, 31 Mar 2025 12:14:37 +0300 Subject: [PATCH] Codestyle fixes --- .github/docker-compose.yml | 15 ----- examples/push_notifications.php | 2 +- examples/push_notifications_dispatcher.php | 2 +- examples/sharded_dispatcher_loop.php | 2 +- examples/sharded_pubsub_consumer.php | 2 +- .../Argument/Stream/XInfoStreamOptions.php | 2 +- src/Command/Container/CLIENT.php | 2 +- src/Command/Container/CLUSTER.php | 2 +- src/Command/Container/XGROUP.php | 2 +- src/Command/Container/XINFO.php | 2 +- src/Command/PrefixableCommand.php | 2 +- src/Command/Redis/SPUBLISH.php | 2 +- src/Command/Redis/SSUBSCRIBE.php | 2 +- src/Command/Redis/SUNSUBSCRIBE.php | 2 +- src/Command/Redis/XAUTOCLAIM.php | 2 +- src/Command/Redis/XGROUP.php | 2 +- src/Command/Redis/XINFO.php | 2 +- src/Command/Redis/XREADGROUP.php | 2 +- .../Functions/DeleteStrategy.php | 0 .../Functions/DumpStrategy.php | 26 -------- .../Functions/FlushStrategy.php | 32 ---------- .../Functions/KillStrategy.php | 26 -------- .../Functions/ListStrategy.php | 36 ----------- .../Functions/LoadStrategy.php | 0 .../Functions/RestoreStrategy.php | 32 ---------- .../Functions/StatsStrategy.php | 26 -------- .../Strategy/StrategyResolverInterface.php | 0 src/Configuration/Options.php | 8 +++ src/Configuration/OptionsInterface.php | 29 ++++++--- .../AbstractAggregateConnection.php | 2 +- src/Connection/RelayFactory.php | 2 +- .../Exception/StreamInitException.php | 2 +- src/Connection/Resource/Stream.php | 2 +- src/Connection/Resource/StreamFactory.php | 2 +- .../Resource/StreamFactoryInterface.php | 2 +- src/Consumer/AbstractConsumer.php | 2 +- src/Consumer/AbstractDispatcherLoop.php | 2 +- src/Consumer/ConsumerInterface.php | 2 +- src/Consumer/DispatcherLoopInterface.php | 2 +- src/Consumer/PubSub/Consumer.php | 2 +- src/Consumer/PubSub/DispatcherLoop.php | 2 +- src/Consumer/PubSub/SubscriptionContext.php | 2 +- src/Consumer/Push/Consumer.php | 2 +- src/Consumer/Push/DispatcherLoop.php | 2 +- .../Push/PushNotificationException.php | 2 +- src/Consumer/Push/PushResponse.php | 2 +- src/Consumer/Push/PushResponseInterface.php | 2 +- .../Parser/ParserStrategyResolver.php | 2 +- .../ParserStrategyResolverInterface.php | 2 +- .../Parser/Strategy/Resp2Strategy.php | 2 +- .../Parser/Strategy/Resp3Strategy.php | 2 +- .../Parser/UnexpectedTypeException.php | 2 +- .../Exception/TransactionException.php | 2 +- .../Response/BypassTransactionResponse.php | 2 +- .../Strategy/ClusterConnectionStrategy.php | 2 +- .../Strategy/ConnectionStrategyResolver.php | 2 +- .../Strategy/NodeConnectionStrategy.php | 2 +- .../Strategy/NonClusterConnectionStrategy.php | 2 +- .../ReplicationConnectionStrategy.php | 2 +- .../Strategy/StrategyInterface.php | 2 +- .../Strategy/StrategyResolverInterface.php | 2 +- tests/Predis/Cluster/PredisStrategyTest.php | 1 - .../Predis/Command/Container/CLUSTER_Test.php | 2 +- .../Predis/Command/PrefixableCommandTest.php | 2 +- tests/Predis/Command/Redis/CLIENT_Test.php | 11 ---- tests/Predis/Command/Redis/SET_Test.php | 1 - tests/Predis/Command/Redis/SPUBLISH_Test.php | 2 +- .../Predis/Command/Redis/SSUBSCRIBE_Test.php | 2 +- .../Command/Redis/SUNSUBSCRIBE_Test.php | 2 +- .../Predis/Command/Redis/XAUTOCLAIM_Test.php | 2 +- tests/Predis/Command/Redis/XGROUP_Test.php | 2 +- tests/Predis/Command/Redis/XINFO_Test.php | 2 +- .../Predis/Command/Redis/XREADGROUP_Test.php | 2 +- .../Functions/DeleteStrategyTest.php | 0 .../Functions/DumpStrategyTest.php | 37 ----------- .../Functions/FlushStrategyTest.php | 54 ---------------- .../Functions/KillStrategyTest.php | 37 ----------- .../Functions/ListStrategyTest.php | 62 ------------------- .../Functions/LoadStrategyTest.php | 0 .../Functions/RestoreStrategyTest.php | 54 ---------------- .../Functions/StatsStrategyTest.php | 37 ----------- .../Configuration/Option/ConnectionsTest.php | 6 +- tests/Predis/Connection/RelayFactoryTest.php | 2 +- .../Predis/Connection/Resource/StreamTest.php | 2 +- .../Predis/Consumer/AbstractConsumerTest.php | 2 +- .../Consumer/AbstractDispatcherLoopTest.php | 2 +- tests/Predis/Consumer/Push/ConsumerTest.php | 2 +- .../Parser/ParserStrategyResolverTest.php | 2 +- .../Parser/Strategy/Resp2StrategyTest.php | 2 +- .../Parser/Strategy/Resp3StrategyTest.php | 2 +- .../Parser/UnexpectedTypeExceptionTest.php | 2 +- .../ClusterConnectionStrategyTest.php | 2 +- .../ConnectionStrategyResolverTest.php | 2 +- .../Strategy/NodeConnectionStrategyTest.php | 2 +- .../ReplicationConnectionStrategyTest.php | 2 +- 95 files changed, 104 insertions(+), 568 deletions(-) delete mode 100644 src/Command/Strategy/ContainerCommands/Functions/DeleteStrategy.php delete mode 100644 src/Command/Strategy/ContainerCommands/Functions/DumpStrategy.php delete mode 100644 src/Command/Strategy/ContainerCommands/Functions/FlushStrategy.php delete mode 100644 src/Command/Strategy/ContainerCommands/Functions/KillStrategy.php delete mode 100644 src/Command/Strategy/ContainerCommands/Functions/ListStrategy.php delete mode 100644 src/Command/Strategy/ContainerCommands/Functions/LoadStrategy.php delete mode 100644 src/Command/Strategy/ContainerCommands/Functions/RestoreStrategy.php delete mode 100644 src/Command/Strategy/ContainerCommands/Functions/StatsStrategy.php delete mode 100644 src/Command/Strategy/StrategyResolverInterface.php delete mode 100644 tests/Predis/Command/Strategy/ContainerCommands/Functions/DeleteStrategyTest.php delete mode 100644 tests/Predis/Command/Strategy/ContainerCommands/Functions/DumpStrategyTest.php delete mode 100644 tests/Predis/Command/Strategy/ContainerCommands/Functions/FlushStrategyTest.php delete mode 100644 tests/Predis/Command/Strategy/ContainerCommands/Functions/KillStrategyTest.php delete mode 100644 tests/Predis/Command/Strategy/ContainerCommands/Functions/ListStrategyTest.php delete mode 100644 tests/Predis/Command/Strategy/ContainerCommands/Functions/LoadStrategyTest.php delete mode 100644 tests/Predis/Command/Strategy/ContainerCommands/Functions/RestoreStrategyTest.php delete mode 100644 tests/Predis/Command/Strategy/ContainerCommands/Functions/StatsStrategyTest.php diff --git a/.github/docker-compose.yml b/.github/docker-compose.yml index d4464b5b..6f4784ae 100644 --- a/.github/docker-compose.yml +++ b/.github/docker-compose.yml @@ -2,21 +2,6 @@ services: - redis-official: - image: ${REDIS_IMAGE_NAME:-redis:7.4} - container_name: redis-standalone - healthcheck: - test: [ "CMD", "redis-cli", "PING" ] - interval: 10s - timeout: 5s - retries: 3 - ports: - - "6379:6379" - profiles: - - all - - official - - standalone - redis-clients: image: ${REDIS_IMAGE_NAME:-redislabs/client-libs-test:7.4.2} container_name: redis-standalone diff --git a/examples/push_notifications.php b/examples/push_notifications.php index c3c0fd16..b5c9a87c 100644 --- a/examples/push_notifications.php +++ b/examples/push_notifications.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/examples/push_notifications_dispatcher.php b/examples/push_notifications_dispatcher.php index 5457cd17..3cd4fce3 100644 --- a/examples/push_notifications_dispatcher.php +++ b/examples/push_notifications_dispatcher.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/examples/sharded_dispatcher_loop.php b/examples/sharded_dispatcher_loop.php index 5e6b4c7a..ed69b167 100644 --- a/examples/sharded_dispatcher_loop.php +++ b/examples/sharded_dispatcher_loop.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/examples/sharded_pubsub_consumer.php b/examples/sharded_pubsub_consumer.php index f883b025..63f29346 100644 --- a/examples/sharded_pubsub_consumer.php +++ b/examples/sharded_pubsub_consumer.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/Argument/Stream/XInfoStreamOptions.php b/src/Command/Argument/Stream/XInfoStreamOptions.php index 02dcea3e..d962c666 100644 --- a/src/Command/Argument/Stream/XInfoStreamOptions.php +++ b/src/Command/Argument/Stream/XInfoStreamOptions.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/Container/CLIENT.php b/src/Command/Container/CLIENT.php index 60228bb0..0d19ae9f 100644 --- a/src/Command/Container/CLIENT.php +++ b/src/Command/Container/CLIENT.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/Container/CLUSTER.php b/src/Command/Container/CLUSTER.php index 05ca2d48..f6c36273 100644 --- a/src/Command/Container/CLUSTER.php +++ b/src/Command/Container/CLUSTER.php @@ -10,7 +10,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command\Redis\Container; +namespace Predis\Command\Container; use Predis\Response\Status; diff --git a/src/Command/Container/XGROUP.php b/src/Command/Container/XGROUP.php index da44e32f..732ebea1 100644 --- a/src/Command/Container/XGROUP.php +++ b/src/Command/Container/XGROUP.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/Container/XINFO.php b/src/Command/Container/XINFO.php index 6f145c60..c66279eb 100644 --- a/src/Command/Container/XINFO.php +++ b/src/Command/Container/XINFO.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/PrefixableCommand.php b/src/Command/PrefixableCommand.php index 3a2d768e..f531f6d4 100644 --- a/src/Command/PrefixableCommand.php +++ b/src/Command/PrefixableCommand.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/Redis/SPUBLISH.php b/src/Command/Redis/SPUBLISH.php index d6452189..ac5b4cfb 100644 --- a/src/Command/Redis/SPUBLISH.php +++ b/src/Command/Redis/SPUBLISH.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/Redis/SSUBSCRIBE.php b/src/Command/Redis/SSUBSCRIBE.php index a923b3f4..cde855ab 100644 --- a/src/Command/Redis/SSUBSCRIBE.php +++ b/src/Command/Redis/SSUBSCRIBE.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/Redis/SUNSUBSCRIBE.php b/src/Command/Redis/SUNSUBSCRIBE.php index 25caca4e..302cb441 100644 --- a/src/Command/Redis/SUNSUBSCRIBE.php +++ b/src/Command/Redis/SUNSUBSCRIBE.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/Redis/XAUTOCLAIM.php b/src/Command/Redis/XAUTOCLAIM.php index 5c9427de..c333e3d0 100644 --- a/src/Command/Redis/XAUTOCLAIM.php +++ b/src/Command/Redis/XAUTOCLAIM.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/Redis/XGROUP.php b/src/Command/Redis/XGROUP.php index 463e5ab9..79a3d0c3 100644 --- a/src/Command/Redis/XGROUP.php +++ b/src/Command/Redis/XGROUP.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/Redis/XINFO.php b/src/Command/Redis/XINFO.php index 49743d64..4d00e670 100644 --- a/src/Command/Redis/XINFO.php +++ b/src/Command/Redis/XINFO.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/Redis/XREADGROUP.php b/src/Command/Redis/XREADGROUP.php index 6749837d..05c6d24a 100644 --- a/src/Command/Redis/XREADGROUP.php +++ b/src/Command/Redis/XREADGROUP.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/Strategy/ContainerCommands/Functions/DeleteStrategy.php b/src/Command/Strategy/ContainerCommands/Functions/DeleteStrategy.php deleted file mode 100644 index e69de29b..00000000 diff --git a/src/Command/Strategy/ContainerCommands/Functions/DumpStrategy.php b/src/Command/Strategy/ContainerCommands/Functions/DumpStrategy.php deleted file mode 100644 index a98bc5d7..00000000 --- a/src/Command/Strategy/ContainerCommands/Functions/DumpStrategy.php +++ /dev/null @@ -1,26 +0,0 @@ -options[$option] = $value; + } } diff --git a/src/Configuration/OptionsInterface.php b/src/Configuration/OptionsInterface.php index 540d7e9d..5523d727 100644 --- a/src/Configuration/OptionsInterface.php +++ b/src/Configuration/OptionsInterface.php @@ -13,18 +13,19 @@ namespace Predis\Configuration; use Predis\Command\Processor\ProcessorInterface; +use Predis\Connection\FactoryInterface; use Predis\Connection\ParametersInterface; /** - * @property callable $aggregate Custom aggregate connection initializer - * @property callable $cluster Aggregate connection initializer for clustering - * @property \Predis\Connection\FactoryInterface $connections Connection factory for creating new connections - * @property bool $exceptions Toggles exceptions in client for -ERR responses - * @property ProcessorInterface $prefix Key prefixing strategy using the supplied string as prefix - * @property \Predis\Command\FactoryInterface $commands Command factory for creating Redis commands - * @property array|ParametersInterface $parameters Parameters associated with connection. - * @property callable $replication Aggregate connection initializer for replication - * @property int $readTimeout Timeout in milliseconds between read operations on reading from multiple connections. + * @property callable $aggregate Custom aggregate connection initializer + * @property callable $cluster Aggregate connection initializer for clustering + * @property FactoryInterface $connections Connection factory for creating new connections + * @property bool $exceptions Toggles exceptions in client for -ERR responses + * @property ProcessorInterface $prefix Key prefixing strategy using the supplied string as prefix + * @property FactoryInterface $commands Command factory for creating Redis commands + * @property array|ParametersInterface $parameters Parameters associated with connection. + * @property callable $replication Aggregate connection initializer for replication + * @property int $readTimeout Timeout in milliseconds between read operations on reading from multiple connections. */ interface OptionsInterface { @@ -63,4 +64,14 @@ interface OptionsInterface * @return mixed|null */ public function __get($option); + + /** + * Set the value of the given option. + * + * @param string $option Name of the option + * @param mixed $value option value + * + * @return void + */ + public function __set($option, $value); } diff --git a/src/Connection/AbstractAggregateConnection.php b/src/Connection/AbstractAggregateConnection.php index a02c2e40..fe76cf1b 100644 --- a/src/Connection/AbstractAggregateConnection.php +++ b/src/Connection/AbstractAggregateConnection.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Connection/RelayFactory.php b/src/Connection/RelayFactory.php index 26b647d0..57ca78c0 100644 --- a/src/Connection/RelayFactory.php +++ b/src/Connection/RelayFactory.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Connection/Resource/Exception/StreamInitException.php b/src/Connection/Resource/Exception/StreamInitException.php index a42df853..ee49e902 100644 --- a/src/Connection/Resource/Exception/StreamInitException.php +++ b/src/Connection/Resource/Exception/StreamInitException.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Connection/Resource/Stream.php b/src/Connection/Resource/Stream.php index 8f40b1c4..0e20227c 100644 --- a/src/Connection/Resource/Stream.php +++ b/src/Connection/Resource/Stream.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Connection/Resource/StreamFactory.php b/src/Connection/Resource/StreamFactory.php index 45b850bf..a459e1a7 100644 --- a/src/Connection/Resource/StreamFactory.php +++ b/src/Connection/Resource/StreamFactory.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Connection/Resource/StreamFactoryInterface.php b/src/Connection/Resource/StreamFactoryInterface.php index ef5286d6..fdb3d1be 100644 --- a/src/Connection/Resource/StreamFactoryInterface.php +++ b/src/Connection/Resource/StreamFactoryInterface.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Consumer/AbstractConsumer.php b/src/Consumer/AbstractConsumer.php index 9644369d..6835ef9e 100644 --- a/src/Consumer/AbstractConsumer.php +++ b/src/Consumer/AbstractConsumer.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Consumer/AbstractDispatcherLoop.php b/src/Consumer/AbstractDispatcherLoop.php index 8ae80348..26ccf33e 100644 --- a/src/Consumer/AbstractDispatcherLoop.php +++ b/src/Consumer/AbstractDispatcherLoop.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Consumer/ConsumerInterface.php b/src/Consumer/ConsumerInterface.php index 0639c050..bcf9c714 100644 --- a/src/Consumer/ConsumerInterface.php +++ b/src/Consumer/ConsumerInterface.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Consumer/DispatcherLoopInterface.php b/src/Consumer/DispatcherLoopInterface.php index 3d2e4a77..5cbb1820 100644 --- a/src/Consumer/DispatcherLoopInterface.php +++ b/src/Consumer/DispatcherLoopInterface.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Consumer/PubSub/Consumer.php b/src/Consumer/PubSub/Consumer.php index 13726b78..768e1124 100644 --- a/src/Consumer/PubSub/Consumer.php +++ b/src/Consumer/PubSub/Consumer.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Consumer/PubSub/DispatcherLoop.php b/src/Consumer/PubSub/DispatcherLoop.php index a670d97f..5d75c6c6 100644 --- a/src/Consumer/PubSub/DispatcherLoop.php +++ b/src/Consumer/PubSub/DispatcherLoop.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Consumer/PubSub/SubscriptionContext.php b/src/Consumer/PubSub/SubscriptionContext.php index b4546a64..ab24407e 100644 --- a/src/Consumer/PubSub/SubscriptionContext.php +++ b/src/Consumer/PubSub/SubscriptionContext.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Consumer/Push/Consumer.php b/src/Consumer/Push/Consumer.php index 793233ca..2b228cbf 100644 --- a/src/Consumer/Push/Consumer.php +++ b/src/Consumer/Push/Consumer.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Consumer/Push/DispatcherLoop.php b/src/Consumer/Push/DispatcherLoop.php index 3d57eb4b..f6d317ac 100644 --- a/src/Consumer/Push/DispatcherLoop.php +++ b/src/Consumer/Push/DispatcherLoop.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Consumer/Push/PushNotificationException.php b/src/Consumer/Push/PushNotificationException.php index d3081b30..92d0830e 100644 --- a/src/Consumer/Push/PushNotificationException.php +++ b/src/Consumer/Push/PushNotificationException.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Consumer/Push/PushResponse.php b/src/Consumer/Push/PushResponse.php index 53426e81..07272050 100644 --- a/src/Consumer/Push/PushResponse.php +++ b/src/Consumer/Push/PushResponse.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Consumer/Push/PushResponseInterface.php b/src/Consumer/Push/PushResponseInterface.php index 7460d8ec..1e619d3d 100644 --- a/src/Consumer/Push/PushResponseInterface.php +++ b/src/Consumer/Push/PushResponseInterface.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Protocol/Parser/ParserStrategyResolver.php b/src/Protocol/Parser/ParserStrategyResolver.php index 8f66d6f6..ab29e96c 100644 --- a/src/Protocol/Parser/ParserStrategyResolver.php +++ b/src/Protocol/Parser/ParserStrategyResolver.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Protocol/Parser/ParserStrategyResolverInterface.php b/src/Protocol/Parser/ParserStrategyResolverInterface.php index 8cafbe0b..aa1a9286 100644 --- a/src/Protocol/Parser/ParserStrategyResolverInterface.php +++ b/src/Protocol/Parser/ParserStrategyResolverInterface.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Protocol/Parser/Strategy/Resp2Strategy.php b/src/Protocol/Parser/Strategy/Resp2Strategy.php index b858640e..cc5e8bac 100644 --- a/src/Protocol/Parser/Strategy/Resp2Strategy.php +++ b/src/Protocol/Parser/Strategy/Resp2Strategy.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Protocol/Parser/Strategy/Resp3Strategy.php b/src/Protocol/Parser/Strategy/Resp3Strategy.php index 1ec85c74..43f3f3cf 100644 --- a/src/Protocol/Parser/Strategy/Resp3Strategy.php +++ b/src/Protocol/Parser/Strategy/Resp3Strategy.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Protocol/Parser/UnexpectedTypeException.php b/src/Protocol/Parser/UnexpectedTypeException.php index f05e4a05..537843e4 100644 --- a/src/Protocol/Parser/UnexpectedTypeException.php +++ b/src/Protocol/Parser/UnexpectedTypeException.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Transaction/Exception/TransactionException.php b/src/Transaction/Exception/TransactionException.php index 451fc372..71960f02 100644 --- a/src/Transaction/Exception/TransactionException.php +++ b/src/Transaction/Exception/TransactionException.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Transaction/Response/BypassTransactionResponse.php b/src/Transaction/Response/BypassTransactionResponse.php index 1ab4cb79..67441fc4 100644 --- a/src/Transaction/Response/BypassTransactionResponse.php +++ b/src/Transaction/Response/BypassTransactionResponse.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Transaction/Strategy/ClusterConnectionStrategy.php b/src/Transaction/Strategy/ClusterConnectionStrategy.php index 6d447f90..c3f73dd6 100644 --- a/src/Transaction/Strategy/ClusterConnectionStrategy.php +++ b/src/Transaction/Strategy/ClusterConnectionStrategy.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Transaction/Strategy/ConnectionStrategyResolver.php b/src/Transaction/Strategy/ConnectionStrategyResolver.php index ebfd1f41..45e414d0 100644 --- a/src/Transaction/Strategy/ConnectionStrategyResolver.php +++ b/src/Transaction/Strategy/ConnectionStrategyResolver.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Transaction/Strategy/NodeConnectionStrategy.php b/src/Transaction/Strategy/NodeConnectionStrategy.php index 663987fd..804693e0 100644 --- a/src/Transaction/Strategy/NodeConnectionStrategy.php +++ b/src/Transaction/Strategy/NodeConnectionStrategy.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Transaction/Strategy/NonClusterConnectionStrategy.php b/src/Transaction/Strategy/NonClusterConnectionStrategy.php index 4d9f5e4e..3687d0ef 100644 --- a/src/Transaction/Strategy/NonClusterConnectionStrategy.php +++ b/src/Transaction/Strategy/NonClusterConnectionStrategy.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Transaction/Strategy/ReplicationConnectionStrategy.php b/src/Transaction/Strategy/ReplicationConnectionStrategy.php index 38a61ffd..2859df7d 100644 --- a/src/Transaction/Strategy/ReplicationConnectionStrategy.php +++ b/src/Transaction/Strategy/ReplicationConnectionStrategy.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Transaction/Strategy/StrategyInterface.php b/src/Transaction/Strategy/StrategyInterface.php index d459b772..a14670c3 100644 --- a/src/Transaction/Strategy/StrategyInterface.php +++ b/src/Transaction/Strategy/StrategyInterface.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Transaction/Strategy/StrategyResolverInterface.php b/src/Transaction/Strategy/StrategyResolverInterface.php index a2b42419..49f849d9 100644 --- a/src/Transaction/Strategy/StrategyResolverInterface.php +++ b/src/Transaction/Strategy/StrategyResolverInterface.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Cluster/PredisStrategyTest.php b/tests/Predis/Cluster/PredisStrategyTest.php index 89a9744b..0f612554 100644 --- a/tests/Predis/Cluster/PredisStrategyTest.php +++ b/tests/Predis/Cluster/PredisStrategyTest.php @@ -501,7 +501,6 @@ class PredisStrategyTest extends PredisTestCase 'SUNSUBSCRIBE' => 'keys-sunsubscribe', 'SPUBLISH' => 'keys-first', - /* cluster */ 'CLUSTER' => 'keys-fake', ]; diff --git a/tests/Predis/Command/Container/CLUSTER_Test.php b/tests/Predis/Command/Container/CLUSTER_Test.php index 005431db..615914b9 100644 --- a/tests/Predis/Command/Container/CLUSTER_Test.php +++ b/tests/Predis/Command/Container/CLUSTER_Test.php @@ -10,7 +10,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command\Redis\Container; +namespace Predis\Command\Container; use Predis\ClientInterface; use PredisTestCase; diff --git a/tests/Predis/Command/PrefixableCommandTest.php b/tests/Predis/Command/PrefixableCommandTest.php index 48603648..d858f488 100644 --- a/tests/Predis/Command/PrefixableCommandTest.php +++ b/tests/Predis/Command/PrefixableCommandTest.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Command/Redis/CLIENT_Test.php b/tests/Predis/Command/Redis/CLIENT_Test.php index 966d1527..533daa89 100644 --- a/tests/Predis/Command/Redis/CLIENT_Test.php +++ b/tests/Predis/Command/Redis/CLIENT_Test.php @@ -387,15 +387,4 @@ BUFFER; ], ]; } - - /** - * @group connected - * @requiresRedisVersion >= 7.3.0 - */ - public function testKillWithMaxAgeOption(): void - { - $redis = $this->getClient(); - - $this->assertSame(0, $redis->client('KILL', 'MAXAGE', 100)); - } } diff --git a/tests/Predis/Command/Redis/SET_Test.php b/tests/Predis/Command/Redis/SET_Test.php index 0726505f..41f1c0e7 100644 --- a/tests/Predis/Command/Redis/SET_Test.php +++ b/tests/Predis/Command/Redis/SET_Test.php @@ -207,7 +207,6 @@ class SET_Test extends PredisCommandTestCase $this->assertNull($redis->set('foofoo', 'barbar', 'XX')); } - /** * @group connected * @requiresRedisVersion >= 2.6.12 diff --git a/tests/Predis/Command/Redis/SPUBLISH_Test.php b/tests/Predis/Command/Redis/SPUBLISH_Test.php index a71cdb81..c31a1654 100644 --- a/tests/Predis/Command/Redis/SPUBLISH_Test.php +++ b/tests/Predis/Command/Redis/SPUBLISH_Test.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Command/Redis/SSUBSCRIBE_Test.php b/tests/Predis/Command/Redis/SSUBSCRIBE_Test.php index 27f33962..b750ecce 100644 --- a/tests/Predis/Command/Redis/SSUBSCRIBE_Test.php +++ b/tests/Predis/Command/Redis/SSUBSCRIBE_Test.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Command/Redis/SUNSUBSCRIBE_Test.php b/tests/Predis/Command/Redis/SUNSUBSCRIBE_Test.php index ddf0d147..8ede0561 100644 --- a/tests/Predis/Command/Redis/SUNSUBSCRIBE_Test.php +++ b/tests/Predis/Command/Redis/SUNSUBSCRIBE_Test.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Command/Redis/XAUTOCLAIM_Test.php b/tests/Predis/Command/Redis/XAUTOCLAIM_Test.php index 57cb3b56..99d18af3 100644 --- a/tests/Predis/Command/Redis/XAUTOCLAIM_Test.php +++ b/tests/Predis/Command/Redis/XAUTOCLAIM_Test.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Command/Redis/XGROUP_Test.php b/tests/Predis/Command/Redis/XGROUP_Test.php index 29c76162..b19b2991 100644 --- a/tests/Predis/Command/Redis/XGROUP_Test.php +++ b/tests/Predis/Command/Redis/XGROUP_Test.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Command/Redis/XINFO_Test.php b/tests/Predis/Command/Redis/XINFO_Test.php index bb19ff3a..050d6f2a 100644 --- a/tests/Predis/Command/Redis/XINFO_Test.php +++ b/tests/Predis/Command/Redis/XINFO_Test.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Command/Redis/XREADGROUP_Test.php b/tests/Predis/Command/Redis/XREADGROUP_Test.php index 2be1fe81..dcf9deaf 100644 --- a/tests/Predis/Command/Redis/XREADGROUP_Test.php +++ b/tests/Predis/Command/Redis/XREADGROUP_Test.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Command/Strategy/ContainerCommands/Functions/DeleteStrategyTest.php b/tests/Predis/Command/Strategy/ContainerCommands/Functions/DeleteStrategyTest.php deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/Predis/Command/Strategy/ContainerCommands/Functions/DumpStrategyTest.php b/tests/Predis/Command/Strategy/ContainerCommands/Functions/DumpStrategyTest.php deleted file mode 100644 index 47fde27e..00000000 --- a/tests/Predis/Command/Strategy/ContainerCommands/Functions/DumpStrategyTest.php +++ /dev/null @@ -1,37 +0,0 @@ -strategy = new DumpStrategy(); - } - - /** - * @group disconnected - * @return void - */ - public function testProcessArguments(): void - { - $this->assertSame(['arg1', 'arg2'], $this->strategy->processArguments(['arg1', 'arg2'])); - } -} diff --git a/tests/Predis/Command/Strategy/ContainerCommands/Functions/FlushStrategyTest.php b/tests/Predis/Command/Strategy/ContainerCommands/Functions/FlushStrategyTest.php deleted file mode 100644 index ad6e00b8..00000000 --- a/tests/Predis/Command/Strategy/ContainerCommands/Functions/FlushStrategyTest.php +++ /dev/null @@ -1,54 +0,0 @@ -strategy = new FlushStrategy(); - } - - /** - * @dataProvider argumentsProvider - * @group disconnected - * @param array $actualArguments - * @param array $expectedResponse - * @return void - */ - public function testProcessArguments(array $actualArguments, array $expectedResponse): void - { - $this->assertSame($expectedResponse, $this->strategy->processArguments($actualArguments)); - } - - public function argumentsProvider(): array - { - return [ - 'with default arguments' => [ - ['FLUSH', null], - ['FLUSH'], - ], - 'with mode argument' => [ - ['FLUSH', 'sync'], - ['FLUSH', 'SYNC'], - ], - ]; - } -} diff --git a/tests/Predis/Command/Strategy/ContainerCommands/Functions/KillStrategyTest.php b/tests/Predis/Command/Strategy/ContainerCommands/Functions/KillStrategyTest.php deleted file mode 100644 index b5ecd74d..00000000 --- a/tests/Predis/Command/Strategy/ContainerCommands/Functions/KillStrategyTest.php +++ /dev/null @@ -1,37 +0,0 @@ -strategy = new KillStrategy(); - } - - /** - * @group disconnected - * @return void - */ - public function testProcessArguments(): void - { - $this->assertSame(['arg1', 'arg2'], $this->strategy->processArguments(['arg1', 'arg2'])); - } -} diff --git a/tests/Predis/Command/Strategy/ContainerCommands/Functions/ListStrategyTest.php b/tests/Predis/Command/Strategy/ContainerCommands/Functions/ListStrategyTest.php deleted file mode 100644 index a8f3a08b..00000000 --- a/tests/Predis/Command/Strategy/ContainerCommands/Functions/ListStrategyTest.php +++ /dev/null @@ -1,62 +0,0 @@ -strategy = new ListStrategy(); - } - - /** - * @dataProvider argumentsProvider - * @group disconnected - * @param array $actualArguments - * @param array $expectedResponse - * @return void - */ - public function testProcessArguments(array $actualArguments, array $expectedResponse): void - { - $this->assertSame($expectedResponse, $this->strategy->processArguments($actualArguments)); - } - - public function argumentsProvider(): array - { - return [ - 'with default arguments' => [ - ['LIST', null, false], - ['LIST'], - ], - 'with LIBRARYNAME modifier' => [ - ['LIST', 'libraryname', false], - ['LIST', 'LIBRARYNAME', 'libraryname'], - ], - 'with WITHCODE modifier' => [ - ['LIST', null, true], - ['LIST', 'WITHCODE'], - ], - 'with all arguments' => [ - ['LIST', 'libraryname', true], - ['LIST', 'LIBRARYNAME', 'libraryname', 'WITHCODE'], - ], - ]; - } -} diff --git a/tests/Predis/Command/Strategy/ContainerCommands/Functions/LoadStrategyTest.php b/tests/Predis/Command/Strategy/ContainerCommands/Functions/LoadStrategyTest.php deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/Predis/Command/Strategy/ContainerCommands/Functions/RestoreStrategyTest.php b/tests/Predis/Command/Strategy/ContainerCommands/Functions/RestoreStrategyTest.php deleted file mode 100644 index ccb96abb..00000000 --- a/tests/Predis/Command/Strategy/ContainerCommands/Functions/RestoreStrategyTest.php +++ /dev/null @@ -1,54 +0,0 @@ -strategy = new RestoreStrategy(); - } - - /** - * @dataProvider argumentsProvider - * @group disconnected - * @param array $actualArguments - * @param array $expectedResponse - * @return void - */ - public function testProcessArguments(array $actualArguments, array $expectedResponse): void - { - $this->assertSame($expectedResponse, $this->strategy->processArguments($actualArguments)); - } - - public function argumentsProvider(): array - { - return [ - 'with default arguments' => [ - ['RESTORE', 'value', null], - ['RESTORE', 'value'], - ], - 'with mode argument' => [ - ['RESTORE', 'value', 'append'], - ['RESTORE', 'value', 'APPEND'], - ], - ]; - } -} diff --git a/tests/Predis/Command/Strategy/ContainerCommands/Functions/StatsStrategyTest.php b/tests/Predis/Command/Strategy/ContainerCommands/Functions/StatsStrategyTest.php deleted file mode 100644 index 39472349..00000000 --- a/tests/Predis/Command/Strategy/ContainerCommands/Functions/StatsStrategyTest.php +++ /dev/null @@ -1,37 +0,0 @@ -strategy = new StatsStrategy(); - } - - /** - * @group disconnected - * @return void - */ - public function testProcessArguments(): void - { - $this->assertSame(['arg1', 'arg2'], $this->strategy->processArguments(['arg1', 'arg2'])); - } -} diff --git a/tests/Predis/Configuration/Option/ConnectionsTest.php b/tests/Predis/Configuration/Option/ConnectionsTest.php index cd109eaf..2d90613b 100644 --- a/tests/Predis/Configuration/Option/ConnectionsTest.php +++ b/tests/Predis/Configuration/Option/ConnectionsTest.php @@ -96,7 +96,11 @@ class ConnectionsTest extends PredisTestCase ->with('parameters') ->willReturn(true); - $options->parameters = ['foo' => 'bar']; + $options + ->expects($this->once()) + ->method('__get') + ->with('parameters') + ->willReturn(['foo' => 'bar']); $option = new Connections(); $factory = $option->filter($options, 'relay'); diff --git a/tests/Predis/Connection/RelayFactoryTest.php b/tests/Predis/Connection/RelayFactoryTest.php index e9b03a26..c49fbdc3 100644 --- a/tests/Predis/Connection/RelayFactoryTest.php +++ b/tests/Predis/Connection/RelayFactoryTest.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Connection/Resource/StreamTest.php b/tests/Predis/Connection/Resource/StreamTest.php index e33a64ae..0e18bdc5 100644 --- a/tests/Predis/Connection/Resource/StreamTest.php +++ b/tests/Predis/Connection/Resource/StreamTest.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Consumer/AbstractConsumerTest.php b/tests/Predis/Consumer/AbstractConsumerTest.php index 00fb66ef..a5996bbf 100644 --- a/tests/Predis/Consumer/AbstractConsumerTest.php +++ b/tests/Predis/Consumer/AbstractConsumerTest.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Consumer/AbstractDispatcherLoopTest.php b/tests/Predis/Consumer/AbstractDispatcherLoopTest.php index 6c2395c9..9dec5885 100644 --- a/tests/Predis/Consumer/AbstractDispatcherLoopTest.php +++ b/tests/Predis/Consumer/AbstractDispatcherLoopTest.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Consumer/Push/ConsumerTest.php b/tests/Predis/Consumer/Push/ConsumerTest.php index 2e1aba14..2efec03b 100644 --- a/tests/Predis/Consumer/Push/ConsumerTest.php +++ b/tests/Predis/Consumer/Push/ConsumerTest.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Protocol/Parser/ParserStrategyResolverTest.php b/tests/Predis/Protocol/Parser/ParserStrategyResolverTest.php index 3e1a5698..b6e0a32b 100644 --- a/tests/Predis/Protocol/Parser/ParserStrategyResolverTest.php +++ b/tests/Predis/Protocol/Parser/ParserStrategyResolverTest.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Protocol/Parser/Strategy/Resp2StrategyTest.php b/tests/Predis/Protocol/Parser/Strategy/Resp2StrategyTest.php index f756e029..9f48b975 100644 --- a/tests/Predis/Protocol/Parser/Strategy/Resp2StrategyTest.php +++ b/tests/Predis/Protocol/Parser/Strategy/Resp2StrategyTest.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Protocol/Parser/Strategy/Resp3StrategyTest.php b/tests/Predis/Protocol/Parser/Strategy/Resp3StrategyTest.php index 60721c10..c185f6c9 100644 --- a/tests/Predis/Protocol/Parser/Strategy/Resp3StrategyTest.php +++ b/tests/Predis/Protocol/Parser/Strategy/Resp3StrategyTest.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Protocol/Parser/UnexpectedTypeExceptionTest.php b/tests/Predis/Protocol/Parser/UnexpectedTypeExceptionTest.php index d7405d26..ecd539df 100644 --- a/tests/Predis/Protocol/Parser/UnexpectedTypeExceptionTest.php +++ b/tests/Predis/Protocol/Parser/UnexpectedTypeExceptionTest.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Transaction/Strategy/ClusterConnectionStrategyTest.php b/tests/Predis/Transaction/Strategy/ClusterConnectionStrategyTest.php index 1ecc8ad6..05270ead 100644 --- a/tests/Predis/Transaction/Strategy/ClusterConnectionStrategyTest.php +++ b/tests/Predis/Transaction/Strategy/ClusterConnectionStrategyTest.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Transaction/Strategy/ConnectionStrategyResolverTest.php b/tests/Predis/Transaction/Strategy/ConnectionStrategyResolverTest.php index 6dfa706b..20714e54 100644 --- a/tests/Predis/Transaction/Strategy/ConnectionStrategyResolverTest.php +++ b/tests/Predis/Transaction/Strategy/ConnectionStrategyResolverTest.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Transaction/Strategy/NodeConnectionStrategyTest.php b/tests/Predis/Transaction/Strategy/NodeConnectionStrategyTest.php index d8ff25c3..386cbec3 100644 --- a/tests/Predis/Transaction/Strategy/NodeConnectionStrategyTest.php +++ b/tests/Predis/Transaction/Strategy/NodeConnectionStrategyTest.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/tests/Predis/Transaction/Strategy/ReplicationConnectionStrategyTest.php b/tests/Predis/Transaction/Strategy/ReplicationConnectionStrategyTest.php index e1d8bf9d..db4575fe 100644 --- a/tests/Predis/Transaction/Strategy/ReplicationConnectionStrategyTest.php +++ b/tests/Predis/Transaction/Strategy/ReplicationConnectionStrategyTest.php @@ -4,7 +4,7 @@ * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri - * (c) 2021-2023 Till Krüss + * (c) 2021-2025 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code.