From 52c2d8143c212336922e2b250f413f690495a82d Mon Sep 17 00:00:00 2001 From: Kaian Date: Tue, 31 May 2022 17:03:50 +0200 Subject: [PATCH] added scan method into FakeRedisMasterFactory Taken from commits into 4.x branch https://github.com/irontec/ivoz-core/commit/df083c81f6bffce8889cda7745dc3da207baddc8 https://github.com/irontec/ivoz-core/commit/a5c923582c9983387ab49430a73d72708c292784 Required for PROVIDER-284 --- Infrastructure/Persistence/Redis/FakeRedisMasterFactory.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Infrastructure/Persistence/Redis/FakeRedisMasterFactory.php b/Infrastructure/Persistence/Redis/FakeRedisMasterFactory.php index 5491dde..7e65329 100644 --- a/Infrastructure/Persistence/Redis/FakeRedisMasterFactory.php +++ b/Infrastructure/Persistence/Redis/FakeRedisMasterFactory.php @@ -23,6 +23,12 @@ public function lPush($key, ...$value1) { return false; } public function rPush($key, ...$value1) { return false; } public function blPop($key, $timeout_or_key, ...$extra_args) { return []; } + + public function scan(&$iterator, $pattern = null, $count = 0) + { + $iterator = 0; + return ['something']; + } }; return new $fakeRedis;