function it_correctly_counts_workers(RedisClientInterface $redis) { $redis->scard('workers')->shouldBeCalled()->willReturn(0); $this->count()->shouldReturn(0); $redis->scard('workers')->shouldBeCalled()->willReturn(456); $this->count()->shouldReturn(456); }