Closed tomlankhorst closed 5 years ago
Refactors SINTER like SDIFF #78 and add test.
SINTER
SDIFF
key1 = {a,b,c,d} key2 = {c} key3 = {a,c,e} SINTER key1 key2 key3 = {c}
Test
$redisMock = new Redis(); $redisMock->sadd('key1', 'a', 'b', 'c', 'd'); $redisMock->sadd('key2', 'c'); $redisMock->sadd('key3', 'a', 'c', 'e'); $this->assert ->array($redisMock->sinter('key1', 'key2', 'key3')) ->isEqualTo(['c']);
hey @tomlankhorst - can you please make the PR mergeable ? Many thanks
Rebased... 👌
By the way, have you got your Packagist Github callbacks in place? :)
v4.5.0
Refactors
SINTER
likeSDIFF
#78 and add test.Test