Skip to content

Commit

Permalink
added scan method into FakeRedisMasterFactory
Browse files Browse the repository at this point in the history
Taken from commits into 4.x branch

df083c8
a5c9235

Required for PROVIDER-284
  • Loading branch information
Kaian committed May 31, 2022
1 parent f9891cd commit 52c2d81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Infrastructure/Persistence/Redis/FakeRedisMasterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 52c2d81

Please sign in to comment.